3 ms·
You could write a pretty trivial component which takes an interval and method as props, and sets the interval in componentDidMount and cancels it in componentWi
by evan_ 10y ago
You could write a pretty trivial component which takes an interval and method as props, and sets the interval in componentDidMount and cancels it in componentWillUnmount.
It probably doesn't make sense to do a timeout that way...