un
un copied to clipboard
Write a React wrapper
Enable to wrap uncomponents as React components to make them available in any React app.
As described here: https://github.com/funkia/turbine/issues/34
The main idea is to configure the mount wrapper, when no element el is passed,
to return a React component written as
({ model, view }) => class extends React.Component {
constructor () {
super()
// tell React to update in reactions on stream events
stateStream.map(this.forceUpdate)
}
render = () => view(state)
}