Summary
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access