A simple React + Redux implementation.
Fork or download this repo and run npm install
in the learn-redux
folder with the package.json
file.
- Like the post
- Comment on the post
- Delete the comment
- React
- Redux
- Webpack
- NodeJs
First npm install
to grab all the necessary dependencies.
Then run npm start
and open localhost:7770 in your browser.
Run npm build
to create a distro folder and a bundle.js file.
Before anything, make sure you are on the latest node. You can run node -v
and if you have anything less than 5.x
, you'll need to update. The files will probably work on older versions, but in my experience 80% of issues go away with an update.
Q: I'm getting: warning.js:44 Warning: Main: ref
is not a prop. Trying to access it will result in undefined
being returned. If you need to access the same value within the child component, you should pass it as a different prop.
A:: I haven't looked into why I didn't get this error, but it means that you should not pass down key
or ref
because those are props that are tied and unique to each element. For now, there is a nice fix posted here
A: You probably don't have the .babelrc
file in your learn-redux
folder. This makes sure that you have all the right transpile dependencies. Grab it from here.
A: I made a video for exactly this.
A: Cobalt2 and Operator Mono. I wrote a bit of info here → http://wesbos.com/uses