Conceptual
Login

Redux Store API

The store exposes three core methods: `dispatch(action)` runs the root reducer, `getState()` returns the current tree, and `subscribe(listener)` registers callbacks fired after every dispatch. React-Redux's `useSelector`/`useDispatch` are thin wrappers over this publish-subscribe surface.

This Concept is waiting for its first lesson!

The store exposes three core methods: `dispatch(action)` runs the root reducer, `getState()` returns the current tree, and `subscribe(listener)` registers callbacks fired after every dispatch. React-Redux's `useSelector`/`useDispatch` are thin wrappers over this publish-subscribe surface.

Are you a teacher? Sign in to start contributing.

Sign In