# elasticpress/5.3.5/assets/js/blocks/index.js

ElasticPress, version 5.3.5. 21 lines.

- Page: https://pluginprobe.com/plugins/elasticpress/5.3.5/code/assets/js/blocks/index.js
- Raw: https://pluginprobe.com/plugins/elasticpress/5.3.5/raw/assets/js/blocks/index.js
- Modified: 2023-08-10T17:15:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elasticpress/5.3.5/code/assets/js/blocks/index.js#L10-L20`.

```javascript
/**
 * WordPress dependencies.
 */
import { createReduxStore, register, registerStore } from '@wordpress/data';

/**
 * Internal dependencies.
 */
import options from './store';

/**
 * Register data store.
 */
if (typeof createReduxStore === 'function') {
	const store = createReduxStore('elasticpress', options);

	register(store);
} else {
	registerStore('elasticpress', options);
}

```
