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` }
)
rogerbf/protostar
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
create a core
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published