diff --git a/README.md b/README.md index 647c279..73254c8 100644 --- a/README.md +++ b/README.md @@ -125,13 +125,14 @@ document.body.appendChild(tree) `models` are objects that contain initial `state`, `subscriptions`, `effects` and `reducers`. They're generally grouped around a theme (or domain, if you like). To provide some sturdiness to your `models`, they can either be -namespaced or not. Namespacing means that only actions and state inside the -model can be called. +namespaced or not. Namespacing means that only state within the model can be +accessed. Models can still trigger actions on other models, though it's +recommeded to keep that to a minimum. So say we have a `todos` namespace, an `add` reducer and a `todos` model. Outside the model they're called by `send('todos:add')` and `state.todos.todos`. Inside the namespaced model they're called by -`send('add')` and `state.todos`. An example namespaced model: +`send('todos:add')` and `state.todos`. An example namespaced model: ```js const app = choo() app.model({ diff --git a/examples/server/client.js b/examples/server-rendering/client.js similarity index 100% rename from examples/server/client.js rename to examples/server-rendering/client.js diff --git a/examples/server/package.json b/examples/server-rendering/package.json similarity index 100% rename from examples/server/package.json rename to examples/server-rendering/package.json diff --git a/examples/server/server.js b/examples/server-rendering/server.js similarity index 100% rename from examples/server/server.js rename to examples/server-rendering/server.js diff --git a/examples/server/views/main.js b/examples/server-rendering/views/main.js similarity index 100% rename from examples/server/views/main.js rename to examples/server-rendering/views/main.js