React

React

The root component pattern

Learn how to set the root type of a component via a prop. A pattern seen in many popular libraries including material-ui.

Read
Testing

The four types of testing and when to use them

There are four types of test. Here I explain how, and when, to use them, including example tools for a React application.

Read
Devops

How to create a React app and deploy it to Netlify

A quick tutorial showing you how to create a React app, add it to source control and deploy it to Netlify.

Read
React

State update functions in React

Whenever you update state based on previous state, use an update function to avoid stale state problems.

Read