React - Composing Higher-Order Components (HOCs)

added by JavaScript Kicks
8/3/2018 11:50:43 PM

1157 Views

To put it simply, a higher-order component is a function, that takes a component and returns a new component. I like to think of them as parameterized components. Many times I find myself creating several components with very similar logic, with only 1 or 2 changes.


0 comments