This sample app domonstrates usage of webcomponents-redux binding package for connecting Web Components to Redux. The app has a Counter Web Component, which is connected to Redux through webcomponents-redux bindings. The component implements mapStateToProps for handling state change, and mapDispatchToProps for dispatching actions. This app includes all the required packages as script tag and does not use any build system. For the version of this app which uses ES Modules and has the build system see webcomponents-redux-sample.
1. Clone this repo
git clone --depth 1 https://github.com/sheeshpaul/webcomponents-redux-script-sample.git
cd webcomponents-redux-script-sample
2. Install the local server
npm install -g http-server
3. Start the local server
http-server
MIT