# Configuring Store

## Configuring Store&#x20;

Providing Slice to Redux Store.

<pre class="language-javascript"><code class="lang-javascript"><strong>// import redux store
</strong><strong>const configureStore = require("@reduxjs/toolkit").configureStore;
</strong><strong>// import slice
</strong>const counterReducer = require("../features/counter/counterSlice");

// configuring store (providing the slice to our redux store)
const store = configureStore({
  reducer: {
    counter: counterReducer, // Assigning the counterReducer to the "counter" slice of the store
  },
});

// Exporting the configured store to be used in other files
module.exports = store;

</code></pre>
