Store

Pascual Vila
Frontend Instructor.
Store is the object that holds the application's state in Redux. You can subscribe to it to listen for changes and dispatch actions to modify its state.
Example of Store usage:
{`import { createStore } from "redux";
const store = createStore(reducer);
store.subscribe(() => {
console.log("State updated:", store.getState());
});
store.dispatch({ type: "INCREMENT" });
store.dispatch({ type: "DECREMENT" });`}