Skip to content

Commit c27f153

Browse files
committed
Update docs for SSR
1 parent 1c233b7 commit c27f153

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ v2.7.1 is released. Please try it out and report any issues. We'll try to addres
1010
## Summary
1111
React-Rails is a flexible tool to use [React](http://facebook.github.io/react/) with Rails. The benefits:
1212
* Automatically renders React server-side and client-side
13-
* Supports Webpacker 5.x and Shakapacker v6.x
13+
* Supports [Webpacker](https://github.com/rails/webpacker) 5.x and [Shakapacker](https://github.com/shakacode/shakapacker) v6.x
1414
* Supports Sprockets 4.x, 3.x
1515
* Lets you use [JSX](http://facebook.github.io/react/docs/jsx-in-depth.html), [ES6](http://es6-features.org/), [TypeScript](https://www.typescriptlang.org/), [CoffeeScript](http://coffeescript.org/)
1616

@@ -545,6 +545,7 @@ Server rendering is powered by [`ExecJS`](https://github.com/rails/execjs) and s
545545

546546
- `react-rails` must load your code. By convention, it uses `server_rendering.js`, which was created
547547
by the install task. This file must include your components _and_ their dependencies (eg, Underscore.js).
548+
- Requires separate compilations for server & client bundles (see [Webpack config](https://github.com/reactjs/react-rails/tree/master/test/dummy/config/webpack))
548549
- Your code can't reference `document` or `window`. Prerender processes don't have access to `document` or `window`,
549550
so jQuery and some other libs won't work in this environment :(
550551

0 commit comments

Comments
 (0)