18 lines
365 B
TypeScript
18 lines
365 B
TypeScript
import * as React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { BrowserRouter as Router} from "react-router-dom";
|
|
import App from "./App";
|
|
|
|
const app = document.getElementById('app');
|
|
if (app) {
|
|
ReactDOM.render(<AppWrapper/>, app);
|
|
}
|
|
|
|
export default function AppWrapper() {
|
|
return (
|
|
<Router>
|
|
<App />
|
|
</Router>
|
|
)
|
|
}
|