© Adam Freeman 2019
Adam FreemanPro React 16https://doi.org/10.1007/978-1-4842-4451-7_11

11. Stateful Components

Adam Freeman1 
(1)
London, UK
 
In this chapter, I introduce the stateful component, which builds on the features described in Chapter 10 and adds state data that is unique to each component and that can be used to alter the rendered output. Table 11-1 puts stateful components in context.
Table 11-1

Putting Stateful Components in Context

Question

Answer

What are they?

Components are the key building blocks in React applications. Stateful components have their own data that can be used to alter the content the component renders.

Why are they useful?

Stateful components make it easier to keep track of the application state provided by each component ...

Get Pro React 16 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.