Categories

Jun 19 in React JS

Q:

  What are Redux selectors and Why to use them?

1 Answer

Jun 19

Selectors are functions that take Redux state as an argument and return some data to pass to the component. For example, to get user details from the state:

const getUserData = state => state.user.data;
Click here to read more about React JS
Click here to read more about Insurance

Related questions

Madanswer
Jun 19 in React JS
Jun 19 in React JS
Jul 2, 2019 in React JS
...