File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
src/routes/solid-router/getting-started Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import { render } from "solid-js/web";
11
11
import { Router } from " @solidjs/router" ;
12
12
13
13
const routes = {
14
- path: " /" ,
15
- component: import (" /routes/index.js" ),
16
- }
14
+ path: " /" ,
15
+ component: import (" /routes/index.js" ),
16
+ }
17
17
18
18
19
19
render (() => < Router> {routes}< / Router> , document .getElementById (" app" ));
@@ -29,9 +29,9 @@ import { Router } from "@solidjs/router";
29
29
30
30
const routes = [
31
31
{
32
- path: " /" ,
33
- component: import (" /routes/index.js" ),
34
- },
32
+ path: " /" ,
33
+ component: import (" /routes/index.js" ),
34
+ },
35
35
{
36
36
path: " /hello-world" ,
37
37
component: < h1> Hello, World! < / h1>
@@ -60,9 +60,9 @@ import { Router } from "@solidjs/router";
60
60
61
61
const routes = [
62
62
{
63
- path: " /" ,
64
- component: lazy (() => import (" /routes/index.js" )),
65
- },
63
+ path: " /" ,
64
+ component: lazy (() => import (" /routes/index.js" )),
65
+ },
66
66
{
67
67
path: " /hello-world" ,
68
68
component: < h1> Hello, World! < / h1>
@@ -78,4 +78,4 @@ render(() => <Router>{routes}</Router>, document.getElementById("app"));
78
78
```
79
79
80
80
To learn more about lazy loading, see the page on [ lazy loading components] ( /solid-router/advanced-concepts/lazy-loading ) .
81
- </Callout >
81
+ </Callout >
You can’t perform that action at this time.
0 commit comments