Reflow (beta)
Render interfaces using pure functions
Reflow is basically Deku with a few extra lifecycle hooks (like initialState
).
Motivation
I wanted learn more about the underlying mechanics of frameworks like React. I ended up stumbling upon Deku shortly after starting I started this project. Deku's architecture solved many of the problems I was running into like passing a component's context to child components, which eliminates the need for "providers" and it makes communicating between component easier. Deku's design also makes DOM diffing and patching simpler (no more DOM element uuids!). So I decided to remodel Reflow after Deku.
I'm making this for fun, don't use this library in production.
Example
var layout element = ; var Component = <div>hello world</div> var render =
Example using Redux
;; var Component = { const context = component; return contextstore } { const context setState = component; contextstore } { const state = component; return <div>hello statename</div> } var { return store: } var render =
License
GNU GPL Version 3