In this chapter we learned a couple of different ways we can create a React and TypeScript project. The more manual way taught us just how many moving parts there are. We'll use create-react-app regularly to quickly create our apps in this book.
We learned how all React class components have a render method that returns JSX, which tells React what to display. JSX is very flexible and powerful, because JavaScript expressions can be mixed in with HTML.
We learned how components can be configured using props, and how we can add TypeScript types to props, to help prevent mistakes when consuming components.
Next, we learnt how components manage what is rendered and how they behave using state. Like props, state in a React and TypeScript app is strongly typed. We initialize state in the constructor, and change it via a setState method.
We also learnt about event handlers...