From f66a7695d122b3820242778f6fa7216a1822f810 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Witt" <jeffreycwitt@gmail.com> Date: Thu, 25 Jan 2018 15:38:22 -0500 Subject: [PATCH] added example to readme --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c0058b622..dc782211c 100644 --- a/README.md +++ b/README.md @@ -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. 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`. + +Example Action + +To increment the canvas index run: + +`state.store.dispatch({type: "INCREMENT"})` -- GitLab