Javascript – How to pass props to React HOC
I have a function that returns an object containing a component and I am passing props from my function to the component but I see the props coming as an empty object. export function withBackgroundRed<TProps = any>( Component: any, props?:…