# blockspare/2.7.1/admin/index.js

BlockSpare – Gutenberg Blocks, AI Content Generator &amp; Site Builder for news, magazine, blog and business sites, version 2.7.1. 11 lines.

- Page: https://pluginprobe.com/plugins/blockspare/2.7.1/code/admin/index.js
- Raw: https://pluginprobe.com/plugins/blockspare/2.7.1/raw/admin/index.js
- Modified: 2023-11-07T14:26:16+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/blockspare/2.7.1/code/admin/index.js#L10-L20`.

```javascript
import React from 'react';
import ReactDOM from 'react-dom';
import Dashboard from "./Dashboard"
import './assets/styles/style.scss'

document.addEventListener('DOMContentLoaded', () => {
    var root_id = "bs-dashboard"
    if ('undefined' !== typeof document.getElementById(root_id) && null !== document.getElementById(root_id)) {
        ReactDOM.render(<Dashboard />, document.getElementById(root_id));
    }
});
```
