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

Components as modules #62

Open
shamansir opened this issue Nov 17, 2020 · 2 comments
Open

Components as modules #62

shamansir opened this issue Nov 17, 2020 · 2 comments

Comments

@shamansir
Copy link
Owner

Usual thing

@shamansir
Copy link
Owner Author

We can get rid of setup and state from Control by wrapping the state a.k.a. value with some type-marker rather than Property. That way Control is a pair of update : Event -> Value -> Value and view : Value -> Html msg, where Event has an option of Child Int Event so that we may update parents on child events. Then Control setup state msg becomes Control msg, bound to some Value, and we may store it in lists and nested structures!

@shamansir
Copy link
Owner Author

Turned out not to be that usual, needs to be done together with separating Event. Partly done.

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

1 participant