4 ms·
Use something like: <YourComponent ref={yourRef => this.yourRef = yourRef}/> I think you should be able to do this.yourRef.state, but if not, you can alway
by mercurial 11y ago
Use something like:
<YourComponent ref={yourRef => this.yourRef = yourRef}/>
I think you should be able to do this.yourRef.state, but if not, you can always implement a getState() method in YourComponent.