Tell us what’s happening:
Declare a store variable and assign it to the createStore() method, passing in the reducer as an argument.
Should this not be :
Assign the createStore method, passing in the reducer as an argument to the store variable?
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:
var store;
store = Redux.createStore(reducer);
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/redux/create-a-redux-store