rail44 / squark

Rust frontend framework, for web browser and more.
https://rail44.github.io/squark/
Do What The F*ck You Want To Public License
174 stars 3 forks source link

Consider a hooks implementation #20

Open rauchg opened 5 years ago

rauchg commented 5 years ago

I think something perhaps suitable for Rust would be:

https://paulgray.net/an-alternative-design-for-hooks/

rauchg commented 5 years ago

Also, in case you missed it, hooks is a new feature being proposed to React: https://reactjs.org/docs/hooks-intro.html

rail44 commented 5 years ago

@rauchg I haven't find whether hooks is suitable or not for my project. react is just view library, so hooks is useful to manage state. however, squark is small but already having feature of frameworks, like elm, reasonreact or hyperapp. give me a moment 👍