Initial commit.
This commit is contained in:
commit
bf8a79e467
13 changed files with 5884 additions and 0 deletions
21
src/client/index.tsx
Normal file
21
src/client/index.tsx
Normal file
|
@ -0,0 +1,21 @@
|
|||
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"));
|
Loading…
Add table
Add a link
Reference in a new issue