Skip to content

A simple program which shows the very basics of Redux, in a nutshell!

Notifications You must be signed in to change notification settings

aksshah/Redux_Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple program which shows the very basics of Redux, in a nutshell!

Expected Output: {counter: 1} {counter: 0}

How, you ask?

  • When the reducer initializes, it takes current counter state i.e. 0.
  • When it executes the first dispatch action(increment), reducer runs the corresponding if condition, increments the counter,sets it to 1, then prints the object.
  • Similar happens when it reaches to the second dispatch method (decrement), and it substracts 1 from the current state value and prints the object.

About

A simple program which shows the very basics of Redux, in a nutshell!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published