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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,10 +71,10 @@ Component = React.createClass
71
71
72
72
### Unobtrusive JavaScript
73
73
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:
75
75
76
76
```erb
77
-
<!-- react_ujs will execute `React.renderComponent(HelloMessage({name:"Bob"}), element)` -->
77
+
<!-- react_ujs will execute `React.render(HelloMessage({name:"Bob"}), element)` -->
0 commit comments