Skip to content

Commit 37917e5

Browse files
justin808claude
andcommitted
Enable server-side rendering by default in generator template
- Change index.html.erb template from prerender: false to prerender: true - Demonstrates SSR capabilities out of the box for new React on Rails apps - Provides better initial experience with improved SEO and performance - Users can still disable by changing to prerender: false if needed 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ed3bda3 commit 37917e5

File tree

1 file changed

+1
-1
lines changed
  • lib/generators/react_on_rails/templates/base/base/app/views/hello_world

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<h1>Hello World</h1>
2-
<%%= react_component("<%= config[:component_name] %>", props: @hello_world_props, prerender: false) %>
2+
<%%= react_component("<%= config[:component_name] %>", props: @hello_world_props, prerender: true) %>

0 commit comments

Comments
 (0)