In response.js, is it better to store the timeout link as an instance variable (this.timeout) or a state variable (this.state.timeout)?
React.createClass({ handleEnter: function () {
or
React.createClass({ handleEnter: function () {
both of these approaches work. I just want to find out the reasons for using one over the other.
javascript reactjs
brendangibson Aug 08 '14 at 16:09 on 2014-08-08 16:09
source share