Table of Contents
Preface
Part 1: Introduction
1
Introducing React
Technical requirements
Understanding the benefits of React
Understanding JSX
Creating a component
Creating a CodeSandbox project
Understanding the React entry point
Understanding the React component tree
Creating a basic alert component
Understanding imports and exports
Understanding the importance of modules
Using export statements
Using import statements
Adding Alert to the App component
Using props
Understanding props
Adding props to the alert component
Using state
Understanding state
Implementing a visible state in the alert component
Adding a close button to Alert
Using events
Understanding events
Implementing a close button click handler in the alert
Implementing an alert ...
Get Learn React with TypeScript - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.