lemmy-ui/src/client/index.tsx

22 lines
469 B
TypeScript
Raw Normal View History

2020-08-23 04:04:58 +00:00
import { Component } from 'inferno';
import { hydrate } from 'inferno-hydrate';
import { BrowserRouter } from 'inferno-router';
import App from './components/App/App';
import { initDevTools } from 'inferno-devtools';
declare global {
interface Window {
isoData: {
name: string;
};
}
}
const wrapper = (
<BrowserRouter>
<App name={window.isoData.name} />
</BrowserRouter>
);
initDevTools();
hydrate(wrapper, document.getElementById('root'));