DEV Community

loading...

Use useSelector and useDispacth in Your React Redux Application

techdurjoy
Updated on ・1 min read

React's new "hooks" APIs give function components the ability to use local component state, execute side effects, and more. React also lets us write custom hooks, which let us extract reusable hooks to add our own behavior on top of React's built-in hooks.

React Redux includes its own custom hook APIs, which allow your React components to subscribe to the Redux store and dispatch actions

Use useSelector and useDispacth in Your React Redux Application

READ ALSO

Spread Operator and Rest Operator Example in JavaScript

Discussion (0)