Accessing Redux Store

Tell us what’s happening:
Why doesn’t the instructions teach me that there is something called redux.createStore() ?
Why do i have to open up the solution to know this ? I think this should be taught in the instructions itself.
For someone who has never used redux, why am i supposed to come up with this on my own ?

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 = createStore(reducer) 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36.

Link to the challenge:

It tells you in the instructions and in the comment above where you put the code? There isn’t really anywhere else it could have been specified. The instructions literally tell you to call the createStore function (passing it the reducer as the only argument) and assign it to the variable store.

Well not really but it is shown in the comments. I just read that now.

The Redux store is an object which holds and manages application state . There is a method called createStore() on the Redux object, which you use to create the Redux store . This method takes a reducer function as a required argument. The reducer function is covered in a later challenge, and is already defined for you in the code editor. It simply takes state as an argument and returns state .

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