the-road-to-react-with-firebase / react-firebase-authentication

🔥 Boilerplate Project for Authentication with Firebase in React.
https://www.robinwieruch.de
1.01k stars 296 forks source link

Using prop function in child component #10

Closed DanielKanyo closed 6 years ago

DanielKanyo commented 6 years ago

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?

DanielKanyo commented 6 years ago

Ohh, I just saw your fix (fix props, September 16). Problem solved. Thank you.