Harry G. Withers is a full stack software developer specialising in a number of technologies including Java, Javascript and ReactJs. He lives in the south of England and enjoys working both in person and remotely.
Learn how to set the root type of a component via a prop. A pattern seen in many popular libraries including material-ui.
Whenever you update state based on previous state, use an update function to avoid stale state problems.