set up routing

This commit is contained in:
MapleLeaf
2021-12-31 12:58:03 -06:00
committed by Darius
parent 235775f84a
commit ba6f9b1698
8 changed files with 62 additions and 10 deletions

View File

@@ -1,5 +1,13 @@
import { StaticRouter } from "react-router-dom/server"
import { Root } from "./root"
import { AppRoutes } from "./routes"
export async function render(url: string) {
return <Root />
return (
<Root>
<StaticRouter location={url}>
<AppRoutes />
</StaticRouter>
</Root>
)
}