Redux: Define a Redux Action

Tell us what’s happening:

    type : 'LOGIN'


This code works to pass check points but this isn’t giving the motive of redux. It passes the check points only.
But i just wrote what was asked in check points to clear that like :

An action object should exist.
The action should have a key property type with value LOGIN .

Thats what i provided ! Please provide me some suggestion because i don’t think this is right.

Your code so far

// Define an action here:
const action = {
type : 'LOGIN'

Your browser information:

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

Challenge: Define a Redux Action

Link to the challenge:

It’s that simple, Redux Actions are just plain objects. Later you will see Action Creators which again are super simple, they are just functions returning the action object.

1 Like

okay got it!
I thought i would use redux other things also.
Thank you!

Well, there is a lot more to Redux than just Actions. You will see as you go through the challenges and learn more about it.

1 Like