(Day 56 of 100) React 7

Dongyob (Eric)
2 min readMar 21, 2019

--

React-Router-Redux environment quick setup

This is a short tutorial on how to set up react-redux environment

  1. github Link: https://github.com/dyl4810/ReactReduxRouterEnv
  2. create react app
$npx create-react-app [app name here]

3. install packages in the app folder

$npm install redux
$npm install react-redux
$npm install react-router-dom // used to be 2 pkgs, but now only 1

4. Final package.json below

5. create rootReducer for redux central store @ reducer -> rootReducer.js

6. make redux store available @ index.js

7. Make redux store available to a component @ components -> SampleComponent.js

8. create postActions @ actions -> postActions.js

9. utilize react-router @ App.js

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response