Creates a Redux store.

@param {Object} [preloadedState]  The initial state.
@param {Array}  [extraMiddleware] Any extra middleware to apply.

@returns {Object} The Redux store.
function configureStore( preloadedState = {}, extraMiddleware = [] ) {
	const enhancers = configureEnhancers( extraMiddleware );

	return createStore( rootReducer, preloadedState, enhancers );
}