wavesoft / dot-dom

.dom is a tiny (512 byte) template engine that uses virtual DOM and some of react principles
Apache License 2.0
808 stars 45 forks source link

Support React Hooks #43

Open styfle opened 6 years ago

styfle commented 6 years ago

Could dot-dom support React Hooks to manage state? Maybe create a dot-dom-hooks project so users could opt-in? This would provide really great compatibility between React Components and dot-dom Components 😄

https://reactjs.org/docs/hooks-intro.html

wavesoft commented 5 years ago

Hello @styfle ! That's not a bad idea. This reminds me that I should work a bit on the modularity of the project, that we were discussing a year ago 😄 let me try to put it on my side-project backlog :)

mindplay-dk commented 5 years ago

@styfle have a look at Fre maybe: I haven't tested this yet, but it claims to be React-compatible for the hooks API - e.g. hooks only, no classes. It has a fiber-based render scheduler, which is really impressive in under 2K... assuming this actually works - it has no tests 😏