@samitouri / QOS-React-2 / commits / 84a93fbacf

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.

Riley Tomasek committed Dec 18, 2014 at 10:05 UTC 84a93fbacff57b8876f8bd3e5d84eb6f9f0c76dc
1 file changed +2 -2
examples/jquery-bootstrap/js/app.js
+2 -2
@@ -12,8 +12,8 @@ var BootstrapButton = React.createClass({
12 });
13
14 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.
17 componentDidMount: function() {
18 // When the component is added, turn it into a modal
19 $(this.getDOMNode())