Skip to content

Commit e055a9f

Browse files
Remove deprecated calls from README.md
1 parent b0dd8c3 commit e055a9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ Component = React.createClass
7171

7272
### Unobtrusive JavaScript
7373

74-
`react_ujs` will call `React.renderComponent` for every element with `data-react-class` attribute. React properties can be specified by `data-react-props` attribute in JSON format. For example:
74+
`react_ujs` will call `React.render` for every element with `data-react-class` attribute. React properties can be specified by `data-react-props` attribute in JSON format. For example:
7575

7676
```erb
77-
<!-- react_ujs will execute `React.renderComponent(HelloMessage({name:"Bob"}), element)` -->
77+
<!-- react_ujs will execute `React.render(HelloMessage({name:"Bob"}), element)` -->
7878
<div data-react-class="HelloMessage" data-react-props="<%= {name: 'Bob'}.to_json %>" />
7979
```
8080

0 commit comments

Comments
 (0)