Closed peterkhayes closed 6 years ago
This is important if you want to access instance methods on a component which is wrapped by ReactTimeout. As an example, imagine you have an input component that needs to use ReactTimeout, but you also want to be able to focus the input.
ReactTimeout
The interface is similar to react-redux - see: https://github.com/reactjs/react-redux/blob/fd436b1e024c4194d3f44dfcef8e30fd24a99a1a/src/components/connectAdvanced.js#:181
react-redux
Test plan: Added a unit test.
Seems good, I'll look at it in a bit!
This is important if you want to access instance methods on a component which is wrapped by
ReactTimeout
. As an example, imagine you have an input component that needs to useReactTimeout
, but you also want to be able to focus the input.The interface is similar to
react-redux
- see: https://github.com/reactjs/react-redux/blob/fd436b1e024c4194d3f44dfcef8e30fd24a99a1a/src/components/connectAdvanced.js#:181Test plan: Added a unit test.