deno.land / x / lume@v2.1.4 / tests / assets / jsx / multiple.jsx

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/** @jsxImportSource npm:react@18.2.0 */
import { assert } from "../../../deps/assert.ts";export const layout = "layout.jsx";
// Export a functionexport default function* ({ url }) { const pages = [1, 2];
assert(url === "/multiple/");
for (const page of pages) { yield { url: `/page/${page}/`, content: <div>{page}</div>, }; }}
lume

Version Info

Tagged at
7 months ago