Redux first lesson

Tell us what’s happening:

What Am i Doing wrong.

Your code so far

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

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

Your browser information:

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

Challenge: Create a Redux Store

Link to the challenge:

You have three problems here:

First, you can’t have the same variable declared twice - you are declaring store twice - remove the first one.

Second, the instructions say:

Declare a store variable and assign it to the createStore() method, passing in the reducer as an argument.

What are you passing in as an argument?

Lastly, you’ve altered the reducer, removing the default value for state - the test needs that.

When I fix those three things, the test passes for me.