Skip to content

Commit

Permalink
Fix additional issues in README
Browse files Browse the repository at this point in the history
  • Loading branch information
robwise committed Nov 5, 2015
1 parent 5808531 commit aa50852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -18,12 +18,12 @@ Please see [Getting Started](#getting-started) for how to set up your Rails proj
+ *Normal Mode (JavaScript is rendered on client):*

```erb
<%= react_component("HelloWorldApp", { @some_props }) %>
<%= react_component("HelloWorldApp", @some_props) %>
```
+ *Server-Side Rendering:*

```erb
<%= react_component("HelloWorldApp", { @some_props }, prerender: true) %>
<%= react_component("HelloWorldApp", @some_props, prerender: true) %>
```

+ The `component_name` parameter here would be a string matching the name you used when globally exposing your React component.
Expand Down

0 comments on commit aa50852

Please sign in to comment.