In a few simple steps we will create an app that has a link with a counter that increases every time we click it.
We will start with very low and rudementary implementation of a store and with each example evolve it to reach a basic Flux and then Redux implementation.
- Global variable - single component
- Global variable - multiple components
- Props
- State
- Flux
- Redux
- Context
- Context with HOC
To run the examples install "create-react-app" and replace the "src/App.js" file
// Install create-react-app globally
npm install -g create-react-app
// Create new project
create-react-app my-app
// Starts the project and opens localhost:3000
cd my-app/
npm start