Commit 6e8d443
Fix generator to produce proper client/server split React component structure
- Replace single HelloWorld.jsx with client/server split:
- HelloWorld.client.jsx: Main component implementation
- HelloWorld.server.jsx: Server-side wrapper importing from client
- Update react_no_redux_generator.rb to copy both client and server files
- This matches the proper_app_structure expected by React on Rails v15
- Enables proper SSR with separate client/server rendering paths
Fixes generator structure to match test expectations in base_generator_examples.rb
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent 3974fc2 commit 6e8d443
File tree
4 files changed
+28
-40
lines changed- lib/generators/react_on_rails
- templates/base/base/app/javascript/src/HelloWorld/ror_components
4 files changed
+28
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments