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
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ These are the steps to get the current repository running on your machine.
14
14
* Download the GitHub respository.
15
15
* Install dependencies with `bundle install`
16
16
* Start the Ruby on Rails application with `bin/dev`
17
-
* Build the React application with `bin/rails react:preview`
17
+
* Build the React application with `bin/rails react_router:preview`
18
18
* Access `http://localhost:3000`
19
19
20
-
If you want to use the React Router development server with HMR, instead of building the React application, run the development server with `bin/rails react:dev`.
20
+
If you want to use the React Router development server with HMR, instead of building the React application, run the development server with `bin/rails react_router:dev`.
21
21
Then access the page with ``http://localhost:5173/react`.
22
22
Note that you will not be able to switch between ERB and React pages with the React Router development server.
23
23
@@ -52,7 +52,7 @@ In short, embracing loader-based fetching will improve the UI/UX of your applica
52
52
53
53
### Automatic Code-splitting
54
54
55
-
When you build the React Router application using `bin/rails react:build`, the whole application is code-split and deployed inside the Rails' `public` folder.
55
+
When you build the React Router application using `bin/rails react_router:build`, the whole application is code-split and deployed inside the Rails' `public` folder.
56
56
The table below shows the generated code-fragments.
57
57
58
58
Note that the code for each route has been split automatically, using information from the integrated router and without manual configuration.
0 commit comments