Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 613 Bytes

HOCS.md

File metadata and controls

19 lines (10 loc) · 613 Bytes

https://reactjs.org/docs/higher-order-components.html

  • What is a Higher Order Component?

  • True or false: HoCs are part of the React API.

  • What is one example of a higher order component from the docs? Can you think of any others you've seen?

  • What are the similarities listed between CommentList and BlogPost?

  • What are the two parameters for the withSubscription function?

  • What does {...props} do?

  • True or false: HoCs should modify the component that is being wrapped. Why or why not?

  • What are the caveats of using HoCs?

  • Can you think of any uses for HoCs in your personal project?