docs: improve examples & concepts

This commit is contained in:
Yoshua Wuyts
2016-05-23 03:32:14 +09:00
parent 23a104cd7e
commit 0be2337605
2 changed files with 152 additions and 45 deletions
+2 -6
View File
@@ -124,12 +124,8 @@ function choo (opts) {
// obj -> obj
function appInit (opts) {
const model = {
state: {
location: document.location.href
},
reducers: {
location: setLocation
},
state: { location: document.location.href },
reducers: { location: setLocation },
subscriptions: []
}