Closed ahdinosaur closed 8 years ago
here's an idea for a bit more sugar (nice api out of the box, implicitly using the helpers):
an inux app is a sweetened inu app, has the following keys:
inux
inu
apps
combineApps
name
init
inu.init
update
handleActions
run
handleEffects
routes
inu.start(inux.help(apps))
playing around with these ideas in https://github.com/holodex/app/blob/compost/dex/app.js and https://github.com/holodex/app/blob/compost/dex/accounts/app.js
continued with #3, closing.
here's an idea for a bit more sugar (nice api out of the box, implicitly using the helpers):
an
inux
app is a sweetenedinu
app, has the following keys:apps
: array of sub-apps to be passed intocombineApps
name
: namespace of appinit
: same asinu.init
update
: function or object of action handlers passed tohandleActions
run
: function or object of effect handlers passed tohandleEffects
routes
: array of routesinu.start(inux.help(apps))
playing around with these ideas in https://github.com/holodex/app/blob/compost/dex/app.js and https://github.com/holodex/app/blob/compost/dex/accounts/app.js