1.

What are the core principles of Redux?

Answer»

There are three core principles that Redux follows:

  • Single source of truth: The global state of your app is put away in an OBJECT tree inside a single store.
  • The state is read-only: State can only be changed by emitting an action, an object that EXPLAINS what has happened.
  • Changes are MADE with pure functions: This is to define how the state tree is being transformed by the ACTIONS, you have to write pure reducers.

NOTE: If you WANT to learn more about Redux then you can visit here.



Discussion

No Comment Found