Design Patterns · Middle · Question 61 of 75

Why did hooks replace most render props and HOCs?

Explanation

Several hooks compose in one function body; several HOCs create nested wrappers that are hard to debug.

Further reading

Problem with a question

Design Patterns · Middle · question 61

Test yourself

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

Take this quiz