mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
21 lines
488 B
TypeScript
21 lines
488 B
TypeScript
import { createRoot } from 'react-dom/client';
|
|
import {
|
|
BrowserRouter as Router,
|
|
Routes,
|
|
Route,
|
|
} from "react-router-dom";
|
|
import './index.css';
|
|
import { App } from './App';
|
|
import { App as AppWithHooks } from './AppWithHooks';
|
|
|
|
const container = document.getElementById('root');
|
|
const root = createRoot(container!);
|
|
root.render(
|
|
<Router>
|
|
<Routes>
|
|
<Route path="/" Component={App}/>
|
|
<Route path="/with-hooks" Component={AppWithHooks}/>
|
|
</Routes>
|
|
</Router>
|
|
);
|