Higher Order Components in 3 minutes

added by JavaScript Kicks
11/26/2018 8:17:32 AM

1068 Views

A pattern for when we find ourselves repeating logic across components. They are not part of the React API. They are functions that take components and return new components! When you find that you are repeating patterns/logic across components. Examples; hooking into/subscribing to a data source adding interactivity to UI (also achieved with wrapper/render props) modifying/adjusting input data (sorting, filtering etc.)


0 comments