You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
601 B
22 lines
601 B
11 months ago
|
import { createBrowserHistory } from 'history';
|
||
|
import React from 'react';
|
||
|
import { render } from 'react-dom';
|
||
|
import createAppStore from 'Store/createAppStore';
|
||
|
import { fetchTranslations } from 'Utilities/String/translate';
|
||
|
import App from './App/App';
|
||
|
|
||
|
export async function bootstrap() {
|
||
|
const history = createBrowserHistory();
|
||
|
const store = createAppStore(history);
|
||
|
const hasTranslationsError = !(await fetchTranslations());
|
||
|
|
||
|
render(
|
||
|
<App
|
||
|
store={store}
|
||
|
history={history}
|
||
|
hasTranslationsError={hasTranslationsError}
|
||
|
/>,
|
||
|
document.getElementById('root')
|
||
|
);
|
||
|
}
|