DEV Community

Discussion on: Using the React Context API, the right way (a time saver)

Collapse
 
subaleethedev profile image
Dustin Subalee

How exactly is the Component Factory pattern you mentioned (coined?) different to HOC (Higher order component)?

Collapse
 
itays123 profile image
Itay Schechner

It's different because of the simplicity. The warpper won't need a higher order component, you just create it with one line of code.