Skip to content

Commit 36deb84

Browse files
jonathanconwaytimdorr
authored andcommitted
Update server side docs to mention babel with reactjs preset (#2126)
resolves #2110
1 parent 3a8bb68 commit 36deb84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/recipes/ServerRendering.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ npm install --save express react-redux
3434

3535
The following is the outline for what our server side is going to look like. We are going to set up an [Express middleware](http://expressjs.com/guide/using-middleware.html) using [app.use](http://expressjs.com/api.html#app.use) to handle all requests that come in to our server. If you're unfamiliar with Express or middleware, just know that our handleRender function will be called every time the server receives a request.
3636

37+
Additionally, as we are using ES6 and JSX syntax, we will need to compile with [Babel](https://babeljs.io/) (see this example of a [this example of a Node Server with Babel](https://github.com/babel/example-node-server)) and the [React preset](https://babeljs.io/docs/plugins/preset-react/).
38+
3739
##### `server.js`
3840

3941
```js

0 commit comments

Comments
 (0)