Summary
In this chapter, we started to create React components and explored their basic features. In particular, we:
- Learned how to define a component as a class derived from
React.Component
, and how to import specific CSS styles - Explored the syntax of JSX, which allows us to quickly define the graphical aspect of a component and use React components that were defined elsewhere
- Combined React components in order to build other components
- Used state management features so that React components automatically update their visual representation when data changes
In the next chapter, we will analyze how to manage user interaction with a React-based application; in other words, how to capture events and make a UI react to those events.