0 votes
in ReactJS by

What are Redux selectors and why to use them?

1 Answer

0 votes
by

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

Related questions

0 votes
asked Nov 1, 2023 in ReactJS by AdilsonLima
0 votes
+1 vote
asked Jun 24, 2021 in Redux by SakshiSharma
...