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

This is cool! #1

Open
pietgeursen opened this issue Jan 31, 2017 · 1 comment
Open

This is cool! #1

pietgeursen opened this issue Jan 31, 2017 · 1 comment

Comments

@pietgeursen
Copy link

Some thoughts and reflections from teaching this at EDA:
We used to teach this pathway: React in es6, components with state -> learn jsx -> learn redux -> rip out component state.

A lot of people found this confusing. @mixmix had the idea to flip it around and with my last cohort we did:
Learn hyperscript (could be yo-yo too) -> use hyperscript and morphdom and mutate global state -> learn how to write a reducer function in the style of redux. Use that function to calculate a new state. -> Pass a dispatch function into all your hyperscript components -> swap in redux -> swap in react.

@mixmix
Copy link

mixmix commented Feb 3, 2017

massive improvement IMO

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

No branches or pull requests

2 participants