react-subscription-view
HOC render-function for subscribe() compatible objects
Example
main.jsy
:
in :: const app_model = setInterval @ app_model 1000 ReactDOMrender @ <App model=app_model /> windowmain
app/view.jsy
:
in const subscribedViewOf = :: subscribedViewOf @ model, model => @ <b>App name: {modelname} counter: modelcounter</b>
app/model.jsy
:
in :: asAction = thisinit :: thisname = name thiscounter = 0 return this asAction = thisincrement :: thiscounter += d return this :: return `Counter "": `