# React High Order Component (HOC)

High Order Component concept: basically is for reusing the component logic

  • Pass a input component as a 'Parameter' and return a new output component.
  • HOC is same concept with High Order Function in JavaScript

*** Please never use HOC inside render function ***

Example of fetch data with loader HOC: Click here

Second Example of Loader HOC Click here

Another good reference HOC replacement solution by using hooks