Skip to content

Commit 418d494

Browse files
committed
✅ Added extra check in the playground
1 parent 55ef16b commit 418d494

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

playground/index.tsx

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
import { createSignal, lazy } from 'solid-js';
22
import { render } from 'solid-js/web';
3-
// import { Link } from 'solid-app-router';
4-
// import { MetaProvider } from 'solid-meta';
5-
// import { Router, Route, RouteDefinition } from 'solid-app-router';
3+
import { Link } from 'solid-app-router';
4+
import { MetaProvider } from 'solid-meta';
5+
import { Router, Route, RouteDefinition } from 'solid-app-router';
66

77
import Home from './pages';
88

9-
// const routes: RouteDefinition[] = [
10-
// {
11-
// path: '/',
12-
// component: Home,
13-
// },
14-
// {
15-
// path: '/about',
16-
// component: lazy(() => import('./pages/about')),
17-
// },
18-
// ];
9+
const routes: RouteDefinition[] = [
10+
{
11+
path: '/',
12+
component: Home,
13+
},
14+
{
15+
path: '/about',
16+
component: lazy(() => import('./pages/about')),
17+
},
18+
];
1919

2020
const App = () => {
2121
const [count, setCount] = createSignal(0);
2222

2323
return (
2424
<>
25-
{/* <Link href="/">Home</Link>
25+
<Link href="/">Home</Link>
2626
<Link href="/about">About!!!</Link>
27-
<Route /> */}
27+
<Route />
2828
<button onClick={() => setCount(count() + 1)}>{count()}</button>
2929
</>
3030
);
3131
};
3232

3333
const dispose = render(
3434
() => (
35-
//<Router routes={routes}>
36-
// <MetaProvider>
35+
<Router routes={routes}>
36+
<MetaProvider>
3737
<App />
38-
// </MetaProvider>
39-
//</Router>
38+
</MetaProvider>
39+
</Router>
4040
),
4141
document.getElementById('app'),
4242
);

0 commit comments

Comments
 (0)