A Simple Vuex example in old-skool JavaScript
Because learning all the things: new framework (Vue), new Architecture (Flux), new JavaScript (ES6), new build tools (Browserify, WebPack) all in one can be a little daunting ...
I've kept the below example as simple and bare-bones as possible. One html file with everything you need.
You can simply open index.html
in your favorite browser to see it in action.
Or, if you want to run it with a server:
python -m SimpleHTTPServer 8000
Then: http://localhost:8000.
Note: you'll need
vue.js
andvuex.js
in the same directory as this code