Skip to content
Source
Sign inSign up
TanStack/router

docs: update build-from-scratch replacements for SolidJS #5216

Mergedjakst(GitHub profile, opens in a new tab)merged 6 commits intomain fromrefs/pull/5216/headmerged by nlynzaad(GitHub profile, opens in a new tab)

Showing 1 changed file with 13 additions and 1 deletion.

x
0 of 1 viewed, 1 left
13 additions and 1 deletiondocs/start/framework/solid/build-from-scratch.mdModified
View file
@@ -3,7 +3,19 @@
replace:
{
'@tanstack/react-start': '@tanstack/solid-start',
- 'React': 'SolidJS',
'react-router': 'solid-router',
+ 'react react-dom': 'solid-js',
+ "Alternatively, you can also use `@vitejs/plugin-react-oxc` or `@vitejs/plugin-react-swc`.\n": '',
+ '@vitejs/plugin-react': 'vite-plugin-solid',
+ '@types/react @types/react-dom ': '',
+ '"jsx": "react-jsx"': "\"jsx\": \"preserve\",\n \"jsxImportSource\": \"solid-js\"",
+ 'import viteReact': 'import viteSolid',
+ "viteReact\\(\\)": 'viteSolid({ssr:true})',
+ "type { ReactNode } from 'react'": "type * as Solid from 'solid-js'",
+ 'ReactNode': 'Solid.JSX.Element',
+ '{state}': '{state()}',
+ " <html>\n <head>\n <HeadContent />\n </head>\n <body>\n {children}\n <Scripts />\n </body>\n </html>": " <>\n <HeadContent />\n {children}\n <Scripts />\n </>",
+ "react's": "solid's",
+ 'React': 'SolidJS',
}
---