├── .gitignore ├── README.md ├── package.json ├── public ├── favicon2.ico ├── index.html └── wanted_list.json └── src ├── actions ├── add_person.js ├── clear_toast.js ├── delete_person.js ├── get_wanted_list.js ├── new_toast.js ├── types.js └── update_person.js ├── components ├── AddUserModal.js ├── App.js ├── LoadingSpinner.js ├── NewUserFace.js ├── Note.js ├── RewardList.js ├── Toast.js └── WantedCard.js ├── index.js ├── reducers ├── index.js ├── reducer_toast.js └── reducer_wanted_list.js └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | node_modules 5 | 6 | # testing 7 | coverage 8 | 9 | # production 10 | build 11 | 12 | # misc 13 | .DS_Store 14 | .env 15 | npm-debug.log 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Tutorial: A Practical Guide to Redux 2 | 3 | This repo is the companion to my blog post, [A Practical Guide to Redux](http://lorenstewart.me/2016/11/27/a-practical-guide-to-redux/). 4 | 5 | [DEMO](http://lorenstewart.me/redux-wanted-list/) 6 | 7 | To get started: 8 | 1. Make sure you're using Node 6 or higher (4 and higher will work, though) 9 | 2. `npm install create-react-app -g` (if you don't have it installed already) 10 | 3. `npm install` 11 | 4. `npm run start` 12 | 5. Open [http://localhost:3000/](http://localhost:3000/) in your browser 13 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "redux-checklist", 3 | "version": "0.0.1", 4 | "private": true, 5 | "devDependencies": { 6 | "react-scripts": "0.7.0" 7 | }, 8 | "dependencies": { 9 | "axios": "^0.15.2", 10 | "react": "^15.3.2", 11 | "react-dom": "^15.3.2", 12 | "react-redux": "^4.4.5", 13 | "redux": "^3.6.0", 14 | "redux-thunk": "^2.1.0", 15 | "spectre.css": "^0.1.27" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build", 20 | "test": "react-scripts test --env=jsdom", 21 | "eject": "react-scripts eject" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /public/favicon2.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lorenseanstewart/redux-wanted-list/85919872df9a21e226aa630a808f62f12a949b7f/public/favicon2.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 16 |{props.content}
} 14 |{r.reward}
12 |