O'Reilly logo

Pro React by Cássio de Sousa Antonio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 6

image

Architecting React Applications with Flux

As you saw earlier, one core philosophy of React is that data flows in a single direction, from parent to child components as props. When a parent component needs its children to reach back, it can pass callback functions down as props as well.

This one-way data flow leads to clear, explicit, and easy-to-follow code. You can trace a React application from start to finish and see what code is executed on changes.

But while this architectural pattern has many advantages, it also brings some challenges. React applications usually grow to have many nesting levels where top components act as containers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required