Skip to content
Snippets Groups Projects
Commit f66a7695 authored by Jeffrey C. Witt's avatar Jeffrey C. Witt
Browse files

added example to readme

parent c3521a31
Branches
No related tags found
No related merge requests found
...@@ -7,3 +7,9 @@ To run the module, first make sure you are in this directory (`minimal_redux_poc ...@@ -7,3 +7,9 @@ To run the module, first make sure you are in this directory (`minimal_redux_poc
2. Open a nodejs console (type `node`) in this directory. 2. Open a nodejs console (type `node`) in this directory.
3. Require the module under a variable name, for example, `state = require('./index.umd')`. 3. Require the module under a variable name, for example, `state = require('./index.umd')`.
4. The exported module currently has most of its functionality under the "store" property, so you may prefer to include it with `state = require('./index.umd').store`. 4. The exported module currently has most of its functionality under the "store" property, so you may prefer to include it with `state = require('./index.umd').store`.
Example Action
To increment the canvas index run:
`state.store.dispatch({type: "INCREMENT"})`
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment