Skip to content
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

Declarative API #17

Closed
Prinzhorn opened this issue Jun 14, 2018 · 0 comments · Fixed by #23
Closed

Declarative API #17

Prinzhorn opened this issue Jun 14, 2018 · 0 comments · Fixed by #23

Comments

@Prinzhorn
Copy link

Right now using go() imperatively doesn't feel right and limits the cases where react-morph can be applied. For example a state change can only be triggered from inside ReactMorph. In the real world this state comes from a Router, redux or a component somewhere else.

What I would love to see as an API would be a prop on the ReactMorph component that controls which state to show. E.g. <ReactMorph go={1}>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant