Design Patterns · Senior · Question 17 of 75

What is the "Hollywood principle", and how does it show up in React?

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.

Further reading

Problem with a question

Design Patterns · Senior · question 17

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz