/8-React-Higher-Order-Component

React Higher Order Components (HOC)

Primary LanguageTypeScript

React Higher Order Components (HOC)

  1. It is also known as HOC. In React, HOC is an advanced technique for reusing component logic. It is a function that takes a component and returns a new component.
  2. HOC component: hoc > WithLoading.tsx

    This component returns orginal component with loading messages.

  3. component > pages > Employee.tsx

    This is the simple component to show the employee information.

  4. component > pages > Department.tsx

    This component will pass the Employee component in the HOC.

Please refer the attached information.txt and APP-DEMO file for more information.