What are Redux Selectors?

Selectors are functions that take Redux state as an argument and return some data to pass to the component. These selectors have two main benefits as stated below:

  • The selector can compute derived data, allowing Redux to store the minimal possible state.
  • The selector is not recomputed unless one of its arguments changes.