180
rated 0 times
[
185]
[
5]
/ answers: 1 / hits: 13637
/ 10 Years ago, sat, november 1, 2014, 12:00:00
Currently I am doing this, but this is not the react.js way, right? Is render() the right place? What is the alternative?
var App = React.createClass({
render: function() {
if (this.state.touchMode === 2) {
$('body').addClass('touchMode');
}
return (<div> etc /div>)
}
)}
More From » reactjs