|
| 1 | +# Examples and Migration References |
| 2 | + |
| 3 | +Use this page as the canonical index for public React on Rails reference repos. |
| 4 | +The goal is to make evaluation, migration, and React on Rails Pro adoption easy |
| 5 | +to navigate without scattering hard-coded repository links across the docs. |
| 6 | + |
| 7 | +Some public repos still use older slugs with underscores or legacy wording. |
| 8 | +This page is the source of truth for which public repos are current and worth |
| 9 | +starting from. |
| 10 | + |
| 11 | +## Starter Repos |
| 12 | + |
| 13 | +Check each entry's note before evaluating — some starters are fully open |
| 14 | +source, while others require React on Rails Pro. |
| 15 | + |
| 16 | +### SSR + HMR Tutorial Demo (open source) |
| 17 | + |
| 18 | +- Repo: [shakacode/react-on-rails-demo-ssr-hmr](https://github.com/shakacode/react-on-rails-demo-ssr-hmr) |
| 19 | +- Use it when you want the maintained Rails + React + SSR + HMR walkthrough repo |
| 20 | + that backs the tutorial and Webpack configuration guidance. |
| 21 | + |
| 22 | +### React on Rails Pro + RSC Starter (Pro) |
| 23 | + |
| 24 | +- Repo: [shakacode/react-on-rails-rsc-demo](https://github.com/shakacode/react-on-rails-rsc-demo) |
| 25 | + _(slug rename to `react-on-rails-demo-rsc` pending — update this line when the |
| 26 | + rename completes)_ |
| 27 | +- Use it when you want a minimal public sample for React Server Components with |
| 28 | + React on Rails Pro. |
| 29 | +- Note: this repo uses React on Rails Pro. See [OSS vs Pro](./oss-vs-pro.md) |
| 30 | + for evaluation guidance. |
| 31 | + |
| 32 | +## In-Repo Reference |
| 33 | + |
| 34 | +### Spec Dummy App |
| 35 | + |
| 36 | +- Repo: [shakacode/react_on_rails — spec/dummy](https://github.com/shakacode/react_on_rails/tree/main/react_on_rails/spec/dummy) |
| 37 | +- Use it when you want the simplest in-repo reference for current generator and |
| 38 | + feature behavior. |
| 39 | +- Note: this is the in-repo test app used by the RSpec suite, not a standalone |
| 40 | + starter repository. |
| 41 | + |
| 42 | +## Migration References |
| 43 | + |
| 44 | +For detailed proof criteria and migration contribution guidance, see |
| 45 | +[Example Migrations](../migrating/example-migrations.md). |
| 46 | + |
| 47 | +- [shakacode/react-on-rails-example-migration](https://github.com/shakacode/react-on-rails-example-migration) — |
| 48 | + focused before/after `react-rails` → React on Rails migration reference. |
| 49 | +- [shakacode/react-on-rails-example-open-flights](https://github.com/shakacode/react-on-rails-example-open-flights) — |
| 50 | + larger example app that shows React on Rails replacing `react-rails` in a |
| 51 | + more realistic codebase. |
| 52 | + |
| 53 | +## React on Rails Pro + RSC Demos |
| 54 | + |
| 55 | +> **Note:** The repos below use React on Rails Pro. See [OSS vs Pro](./oss-vs-pro.md) |
| 56 | +> for evaluation guidance. |
| 57 | +
|
| 58 | +### Hacker News RSC Demo |
| 59 | + |
| 60 | +- Repo: [shakacode/react-on-rails-demo-hacker-news-rsc](https://github.com/shakacode/react-on-rails-demo-hacker-news-rsc) |
| 61 | +- Use it when you want a compact public demo of React on Rails Pro with React |
| 62 | + Server Components on a familiar read-heavy UI. |
| 63 | + |
| 64 | +### Marketplace RSC Performance Demo |
| 65 | + |
| 66 | +- Repo: [shakacode/react-on-rails-demo-marketplace-rsc](https://github.com/shakacode/react-on-rails-demo-marketplace-rsc) |
| 67 | +- Use it when you want a public performance-oriented RSC demo showing the shape |
| 68 | + of the user-visible win on a marketplace-style surface. |
| 69 | + |
| 70 | +### Gumroad-Style RSC Benchmark Demo |
| 71 | + |
| 72 | +- Repo: [shakacode/react-on-rails-demo-gumroad-rsc](https://github.com/shakacode/react-on-rails-demo-gumroad-rsc) |
| 73 | +- Use it when you want a benchmark-oriented comparison between an Inertia-style |
| 74 | + surface and a React on Rails Pro + RSC surface on the same product domain. |
| 75 | +- Note: this is a ShakaCode-built demo modeled on a Gumroad-style UI, not an |
| 76 | + official Gumroad product or integration. |
| 77 | + |
| 78 | +## Live Demos |
| 79 | + |
| 80 | +- [reactrails.com](https://reactrails.com) — production-style React on Rails app |
| 81 | + you can click through in your browser without any local setup. Backed by the |
| 82 | + legacy [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial) |
| 83 | + source. |
| 84 | + |
| 85 | +## Legacy Repos |
| 86 | + |
| 87 | +Version-specific demos, `test-*` repos, generator snapshots, and older tutorial |
| 88 | +repos are useful historical references, but they are not the primary starting |
| 89 | +point for new evaluations. |
| 90 | + |
| 91 | +- Legacy full app: [shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial) — |
| 92 | + older production-style app (see Live Demos above for the running site at reactrails.com). |
| 93 | + Still useful as a historical reference, but not the recommended starting point for new projects. |
| 94 | + |
| 95 | +If you are choosing a public reference repo for docs, talks, or adoption work, |
| 96 | +start with the repos above. |
0 commit comments