Chapter 3. Data and data flow in React

This chapter covers

  • Mutable and immutable state
  • Stateful and stateless components
  • Component communication
  • One-way data flow

Chapter 2 was a whirlwind tour of React. We spent some time learning about React at a high level, looked at some of the concepts behind its design and API, and we even went through building a simple comment box with React components. In chapter 4 you’ll start to work more extensively with components and start building the Letters Social sample project. But before you do that, you need to know a little bit more about how to work with data in React and understand how it flows in React applications. That’s what this chapter is about.

3.1. Introducing state

Chapter 2 gave you a few ...

Get React in Action 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.