I have a component which is exported like this: export default withAuthorization(authCondition)(Child); and I pass a function to the child component from the parent via prop
but if I console log this.props, I don't see the passed prop function.
How can I use a prop function inside the child component?
I have a component which is exported like this: export default withAuthorization(authCondition)(Child); and I pass a function to the child component from the parent via prop
but if I console log this.props, I don't see the passed prop function.
How can I use a prop function inside the child component?