You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ While ShakaCode will continue to support this gem, you might consider migrating
21
21
Why? React on Rails code receives much more active development and testing. For example, consider the [ReactRailsUJS](https://github.com/reactjs/react-rails/blob/main/react_ujs/index.js) implementation compared to the [ReactOnRails Node package](https://github.com/shakacode/react_on_rails/tree/master/node_package) which is written in TypeScript. For another example, React on Rails has work underway to support the latest React features, such as [React Server Components](https://react.dev/reference/rsc/server-components).
22
22
23
23
You can find [migration to React on Rails steps here](https://github.com/reactjs/react-rails/blob/main/docs/migrating-from-react-rails-to-react_on_rails.md).
24
+
24
25
For the fastest path, try the [LLM-assisted migration prompt](https://github.com/reactjs/react-rails/blob/main/docs/migrating-from-react-rails-to-react_on_rails.md#llm-assisted-migration-prompt).
Copy file name to clipboardExpand all lines: docs/migrating-from-react-rails-to-react_on_rails.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,9 +66,13 @@ You can also check [react-rails-to-react-on-rails](https://github.com/shakacode/
66
66
67
67
You can usually do a safe first-pass migration quickly with a coding assistant. Give it this prompt:
68
68
69
+
If your assistant cannot browse URLs, paste this migration guide content directly into the prompt context before running the template.
70
+
69
71
```text
70
72
You are a senior Rails + React engineer. Migrate this app from react-rails to react_on_rails.
71
73
74
+
Before starting, ask me for the relevant files (at minimum: Gemfile, package.json, JS entrypoints, config/initializers, and representative react_component usages).
0 commit comments