Whenever I try to solve Redux Freecodecamp Challenges I always get -
Uncaught Reference error: Redux is not defined
So, what should I do?
const reducer = (state = 5) => {
return state;
}
// Redux methods are available from a Redux object
// For example: Redux.createStore()
// Define the store here:
const store = Redux.createStore(reducer)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.
Sorry but I am not able to reproduce this error. When I use the code you have posted above in this challenge it passes the tests without any error. Can you try in a different browser and see if it still gives an error?