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.
This commit is contained in:
Riley Tomasek
2014-12-18 10:05:25 -05:00
parent 08b6b28902
commit 84a93fbacf
+2 -2
View File
@@ -12,8 +12,8 @@ var BootstrapButton = React.createClass({
});
var BootstrapModal = React.createClass({
// The following four methods are the only places we need to
// integrate with Bootstrap or jQuery!
// The following two methods are the only places we need to
// integrate Bootstrap or jQuery with the components lifecycle methods.
componentDidMount: function() {
// When the component is added, turn it into a modal
$(this.getDOMNode())