Skip to content

Commit 84a93fb

Browse files
committed
Improve comment in example code
This should make it more clear that even though `$` is used in 4 methods, only 2 of them are crucial for integrating the modal into the components lifecycle methods and the other 2 are just helpers.
1 parent 08b6b28 commit 84a93fb

File tree

1 file changed

+2
-2
lines changed
  • examples/jquery-bootstrap/js

1 file changed

+2
-2
lines changed

examples/jquery-bootstrap/js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ var BootstrapButton = React.createClass({
1212
});
1313

1414
var BootstrapModal = React.createClass({
15-
// The following four methods are the only places we need to
16-
// integrate with Bootstrap or jQuery!
15+
// The following two methods are the only places we need to
16+
// integrate Bootstrap or jQuery with the components lifecycle methods.
1717
componentDidMount: function() {
1818
// When the component is added, turn it into a modal
1919
$(this.getDOMNode())

0 commit comments

Comments
 (0)