-
Notifications
You must be signed in to change notification settings - Fork 668
Passing context to functional components #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Agree to 100%, feels natural and allows for customization or extending in the future. |
The way I got this working in avoriaz is to mount a component with a render functional that returns the functional component and passes it the context object - https://github.com/eddyerburgh/avoriaz/blob/master/src/mount.js#L33 I imagine there are problems with doing it like this, but I wanted to get something out there as a canary test. Maybe we should also allow users to pass props to |
I think it makes sense to make |
Closed with eda39df |
I propose this API to pass context to functional components:
What are peoples thoughts?
The text was updated successfully, but these errors were encountered: