import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';

import store from './store';
import App from './components/App';

import 'draft-js/dist/Draft.css';
import './scss/styles.scss';

const root = document.getElementById('root');

ReactDOM.render(
  <Provider store={store}>
    <App basename={root.dataset.basename || '/'} base_api_url={root.dataset.base_api_url || 'http://localhost:9000' } />
  </Provider>,
  root
);
