# Dispatching Actions

## Dispatching Actions&#x20;

Dispatching Actions to Redux Store.

```javascript
// importing store configuration
const store = require("./app/store");
// importing slice
const { counterActions } = require("./features/counter/counterSlice");

// initial state
console.log(store.getState());

// subscribe to state changes
store.subscribe(() => {
  console.log(store.getState());
});

// disptach actions
store.dispatch(counterActions.increment());

store.dispatch(counterActions.increment());

store.dispatch(counterActions.decrement());
```
