Design Patterns · Senior · Question 17 of 75
What is the "Hollywood principle", and how does it show up in React?
- ✓Correct answer: "Don't call us, we'll call you": the framework calls your code
- 2Components should be spectacular and animated
- 3State is passed only top-down via props
Explanation
You describe components, and React decides when to render them and call effects and handlers. This distinguishes a framework from a utility library that you call. Render props and callbacks are local forms of the same principle.