scrimba
React Bootcamp Course
Redux in React - Setup & Practice
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Redux in React - Setup & Practice
AboutCommentsNotes
Redux in React - Setup & Practice
Expand for more info
redux
index.js
run
preview
console
import redux, {createStore} from "redux"

/**
* Challenge: set up redux action creators, reducer, and store
* We'll be building a counter app to start out.
* Read the comments below for the step-by-step challenges
*/

// 1. Create action creators for having the count "increment" and "decrement"


// 2. Create a reducer to handle your increment and decrement actions


// 3. Create a new Redux store


// 4. Set up the subscribe function so we can more easily see the changes to the Redux state as they happen


// 5. Export the store as a default export

Console
Error: Unknown require: react (in module /node_modules/react-redux/dist/react-redux.js) (/node_modules/react-redux/dist/react-redux.js:2)
,
/index.html
-3:18