Createstore method

Tell us what’s happening:

Your code so far

const reducer = (state = 5) => {
return state;

// Redux methods are available from a Redux object
// For example: Redux.createStore()
// Define the store here:
const store=5;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36.

Challenge: Create a Redux Store

Link to the challenge:


We’re here to learn so we don’t give solutions. But I can provide some guidance.

The instructions say:

Declare a store variable and assign it to the createStore() method…

but you have:

const store=5;

Now, I think the wording is a little odd, but they are asking you to set the store, not to 5, but to the return value of Redux.createStore.

The instructions continue…

…passing in the reducer as an argument.

You haven’t passed anything to Redux.createReducer. You need to pass it a reducer. Do you see a reducer anywhere?

1 Like