The Redux store is a single JavaScript object that holds the complete state tree of your application. It provides methods to:
getState()
: Returns current statedispatch(action)
: Dispatches an action to trigger state changesubscribe(listener)
: Registers a listener functionimport { createStore } from 'redux';
const store = createStore(reducer);