June 2019
Intermediate to advanced
192 pages
4h
English
The power of React is that it allows you to express web apps in individual units called components. But the rules for assigning different bits of functionality to different components aren’t always clear. In principle, any React app could be expressed as a single monolithic component. Or at the opposite extreme, every DOM element in the page could be managed by its own micro-component.
A good rule of thumb is that components should be built in such a way that each component has only one job. Components with multiple responsibilities are a good candidate for being split up. These distinctions are intuitive, not technical—no automated process is going to tell you whether a component has multiple ...
Read now
Unlock full access