|
2 | 2 | ref: docs/start/framework/react/build-from-scratch.md |
3 | 3 | replace: |
4 | 4 | { |
5 | | - "@tanstack/react-start": "@tanstack/solid-start", |
6 | | - "react-router": "solid-router", |
7 | | - "react react-dom": "solid-js", |
8 | | - "Alternatively, you can also use `@vitejs/plugin-react-oxc` or `@vitejs/plugin-react-swc`.\n": "", |
9 | | - "@vitejs/plugin-react": "vite-plugin-solid", |
10 | | - "@types/react @types/react-dom ": "", |
11 | | - "\"jsx\": \"react-jsx\"": "\"jsx\": \"preserve\",\n \"jsxImportSource\": \"solid-js\"", |
12 | | - "import viteReact": "import viteSolid", |
13 | | - "viteReact\\(\\)": "viteSolid({ssr:true})", |
| 5 | + '@tanstack/react-start': '@tanstack/solid-start', |
| 6 | + 'react-router': 'solid-router', |
| 7 | + 'react react-dom': 'solid-js', |
| 8 | + "Alternatively, you can also use `@vitejs/plugin-react-oxc` or `@vitejs/plugin-react-swc`.\n": '', |
| 9 | + '@vitejs/plugin-react': 'vite-plugin-solid', |
| 10 | + '@types/react @types/react-dom ': '', |
| 11 | + '"jsx": "react-jsx"': "\"jsx\": \"preserve\",\n \"jsxImportSource\": \"solid-js\"", |
| 12 | + 'import viteReact': 'import viteSolid', |
| 13 | + "viteReact\\(\\)": 'viteSolid({ssr:true})', |
14 | 14 | "type { ReactNode } from 'react'": "type * as Solid from 'solid-js'", |
15 | | - "ReactNode": "Solid.JSX.Element", |
16 | | - "{state}":"{state()}", |
| 15 | + 'ReactNode': 'Solid.JSX.Element', |
| 16 | + '{state}': '{state()}', |
17 | 17 | " <html>\n <head>\n <HeadContent />\n </head>\n <body>\n {children}\n <Scripts />\n </body>\n </html>": " <>\n <HeadContent />\n {children}\n <Scripts />\n </>", |
18 | 18 | "react's": "solid's", |
19 | | - "React": "SolidJS", |
| 19 | + 'React': 'SolidJS', |
20 | 20 | } |
21 | 21 | --- |
0 commit comments