Create Redux store

Tell us what’s happening:
Describe your issue in detail here.

  **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{
return state = 5
})
r
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 10; TECNO KB8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.99 Mobile Safari/537.36

Challenge: Create a Redux Store

Link to the challenge:

That is not valid JS.

You need to follow the example for calling the method:

// For example: Redux.createStore()

and you need to pass the reducer - not copy it and paste it but pass the reference.

1 Like

Just do …
const store = Redux.createStore(reducer)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.