|
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': 'SolidJS', |
7 | | - 'react-router': 'solid-router', |
8 | | - 'react react-dom': 'solid-js', |
9 | | - '@vitejs/plugin-react': 'vite-plugin-solid', |
10 | | - '@types/react @types/react-dom ': '', |
11 | | - '"jsx": "react-jsx"': '"jsx": "preserve",\n "jsxImportSource": "solid-js"', |
| 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 | + "type { ReactNode } from 'react'": "type * as Solid from 'solid-js'", |
| 15 | + "ReactNode": "Solid.JSX.Element", |
| 16 | + "{state}":"{state()}", |
| 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 </>", |
12 | 18 | "react's": "solid's", |
| 19 | + "React": "SolidJS", |
13 | 20 | } |
14 | 21 | --- |
0 commit comments