This example, just like `with-react` and `with-mobx` examples, shows how to manage a global state in your web-application.
This example, just like `with-react` and `with-mobx` examples, shows how to manage a global state in your web-application.
In this case we are using refnux which is an alternative, simpler, purely functional store state manager.
In this case we are using [refnux](https://github.com/algesten/refnux) which is an alternative, simpler, purely functional store state manager.
We have two very similar pages (page1.js, page2.js). They both
We have two very similar pages (page1.js, page2.js). They both
...
@@ -51,4 +51,4 @@ In the `store/` directory you can see a simple implmentation of
...
@@ -51,4 +51,4 @@ In the `store/` directory you can see a simple implmentation of
- a `counterIncrement` action that increments the counter state whe user pushes the corresponding button
- a `counterIncrement` action that increments the counter state whe user pushes the corresponding button
- a `setTitle` action that's used to set page title during pages `getInitialProps`
- a `setTitle` action that's used to set page title during pages `getInitialProps`
If you have any comment / question / pull requests please refer to the [original repository](https://github.com/davibe/next.js-example-with-refnux) where this example is developed and maintained.
If you have any comment / question / pull requests please refer to the [original repository](https://github.com/davibe/next.js-example-with-refnux) where this example is developed and maintained.