in React JS by
Q:

What are the core principles of Redux?

1 Answer

0 votes
by

Redux follows three fundamental principles:

  1. Single source of truth: The state of your whole application is stored in an object tree within a single store. The single state tree makes it easier to keep track of changes over time and debug or inspect the application.
  2. State is read-only: The only way to change the state is to emit an action, an object describing what happened. This ensures that neither the views nor the network callbacks will ever write directly to the state.
  3. Changes are made with pure functions: To specify how the state tree is transformed by actions, you write reducers. Reducers are just pure functions that take the previous state and an action as parameters, and return the next state.
Click here to read more about React JS
Click here to read more about Insurance

Related questions

0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
asked Jun 19, 2020 in React JS by JackTerrance
0 votes
asked Mar 4, 2020 in React JS by JackTerrance
0 votes
0 votes
asked Jul 2, 2019 in React JS by Venkatshastri
0 votes
asked Mar 3, 2020 in React JS by miceperry
...