Define a Redux Action

Define a Redux Action
0.0 0

#1

Tell us what’s happening:

Your code so far


// Define an action here:

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/redux/define-a-redux-action


#2

Take the instruction literally and declare an object literal with expected property and value.

Remember, the syntax for object literal is ,

const obj = {

}

If you still want the solution after trying, here it is.

const action = {
type: “LOGIN”
};