Why is the callback function not working in the HOC component?

Advertisements I’m passing the state (setActive) to the ButtonsOur component. Further, through the callback, I pass setActive to the HOC, but I get this error "Uncaught TypeError: setActive is not a function". Why it doesn’t work, and how i can fix this? In ButtonsOur component I am passing setActive from parent component via props This… Read More Why is the callback function not working in the HOC component?