Tell us what’s happening:
Your code so far
const store = Redux.createStore(
(state = {login: false}) => state
);
const loginAction = () => {
return {
type: 'LOGIN'
}
};
// Dispatch the action here:
store.dispatch(actionCreator());
store.dispatch({ type: 'LOGIN' });
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
.
Link to the challenge:
Example code from the explanation:
store.dispatch(actionCreator());
Key phase here:
There’s also an action creator called loginAction()
And, this:
Dispatch the LOGIN
action to the Redux store by calling the dispatch
method, and pass in the action created by loginAction()
.
An appropriate substitution will make your code pass.
sorry can you explain it…