Professional Documents
Culture Documents
Tutorial
Tutorial
” como rota raiz" elenent™
src/main. jsx
ntpsufreactroutercom/en/main/starttutorialosio3i24, 13:48 “Tutorial v8.22.3 | Roteador React
1 /* existing imports */
2 import Root fron ". /routes/root™s
3
4 const router = createsrouserRouter(
5k
6 path: "/",
7 elenent: Sorry, an unexpected error has occurred.
2 {contact notes} New
/contacts"s
2irmoosio3i24, 13:48
1 /* other imports *,
2
3 import Root, {
4 Ieader as roottoader,
5 action as reotAction,
6) from "./routes/root™s
7
const router = createBrouserRouter([
9
10 path: "/",
n elenent: