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.

BY Best Interview Question ON 31 May 2021