This pr is just a thought to abstract the render in renderers/render to isomorphic/render.
Just a thought in creating a generic layer of render for anyone to create a package on top of the public render API and create different types of renderers. there is still much to write.
Disclaimer
This pr is just a thought to abstract the render in
renderers/render
toisomorphic/render
.Just a thought in creating a generic layer of
render
for anyone to create a package on top of the public render API and create different types of renderers. there is still much to write.How to use
To create a render just import
renderFactory
:Use as a callback, for example:
renderFactory
returns anargs
that can beobject
orstring
.string
When vnode returns string. In the case of a
render-dom
, when called recursively passing thechild
.object
vnode
is the vnode. :)component
is the instance of the component, to pass a bind to events for example.