Skip to content

Tag: higher-order-components

HOC – Functional Component

I have already created a HOC in my react app following this, and its working fine. However i was wondering if there is a way to create a HOC as functional component(With or without state)??? since the given example is a class based component. Tried to find the same over web but couldn’t get anything. Not sure if thats even