What Are The Three Principles That Redux Follows?

Answer

-Single Source Of Truth: The State Of Your Entire Application Is Stored In An Object/State Tree Inside A Single Store. The Single State Tree Makes It Easier To Keep Changes Over Time. It Also Makes It Easier To Debug Or Inspect The Application.
- The State Is Read-Only: There Is Only One Way To Change The State Is To Emit An Action, An Object Describing What Happened. This Principle Ensures That Neither The Views Nor The Network Callbacks Can Write Directly To The State.
- Changes Are Made With Pure Functions: To Specify How Actions Transform The State Tree, You Need To Write Reducers (Pure Functions). Pure Functions Take The Previous State And Action As A Parameter And Return A New State.

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---