Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const updateReducer$ = action$.map(num => function updateReducer(prevState) {
return {count: prevState.count + num};
});
const reducer$ = xs.merge(initReducer$, updateReducer$);
return {
DOM: vdom$,
onion: reducer$,
};
}
const wrappedMain = onionify(main);
run(wrappedMain, {
DOM: makeDOMDriver('#main-container')
});