c92c4cded3
The TypeScript build currently runs but fails for a number of files. This commit only contains rename operations on the source files.
23 lines
498 B
TypeScript
23 lines
498 B
TypeScript
/**
|
|
* Client-side entry point to shared frontend React App
|
|
*
|
|
*/
|
|
import BrowserRouter from 'react-router-dom/BrowserRouter';
|
|
import React from 'react';
|
|
import { hydrate } from 'react-dom';
|
|
|
|
import App from './frontend/app';
|
|
|
|
const data = window.__PRELOADED_STATE__;
|
|
|
|
hydrate(
|
|
<BrowserRouter>
|
|
<App user={data.user} building={data.building} building_like={data.building_like} />
|
|
</BrowserRouter>,
|
|
document.getElementById('root')
|
|
);
|
|
|
|
if (module.hot) {
|
|
module.hot.accept();
|
|
}
|