Skip to content

Commit e216127

Browse files
jakstcoderabbitai[bot]autofix-ci[bot]nlynzaad
authored
docs: update build-from-scratch replacements for SolidJS (#5216)
The docs make references to react in a lot of places. I updated the ones I could find in the build-from-scratch guide to use proper solid-js package names and other references. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Documentation** - Expanded "build from scratch" guide for migrating from React to SolidJS. - Added comprehensive mapping of React libraries, tooling, and plugins to Solid equivalents. - Documents alternative React tooling options and Solid-compatible plugin recommendations. - Clarifies updating JSX runtime and project configuration for SolidJS. - Describes import/usage changes and fragment/JSX differences needed for Solid. - Notes removal of React-specific type artifacts during migration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Nico Lynzaad <44094871+nlynzaad@users.noreply.github.com> Co-authored-by: Nico Lynzaad <nlynzaad@zylangroup.com>
1 parent ed7004b commit e216127

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

docs/start/framework/solid/build-from-scratch.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@ ref: docs/start/framework/react/build-from-scratch.md
33
replace:
44
{
55
'@tanstack/react-start': '@tanstack/solid-start',
6-
'React': 'SolidJS',
76
'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 </>",
18+
"react's": "solid's",
19+
'React': 'SolidJS',
820
}
921
---

0 commit comments

Comments
 (0)