protostar
v0.0.1
Published
create a core
Downloads
10
Readme
protostar
const factory = require(`protostar`)
const changeName = (core, state, name) =>
core(Object.assign({}, state, { name }))
const main = (core, state) => {
console.log(state.name)
}
module.exports = factory.bind(
null,
main,
{ changeName },
{ name: `unnamed` }
)