3 ms·
Tried that, couldn't figure out how to get it to work. Still didn't have access to child's state.
by kruhft 11y ago
Tried that, couldn't figure out how to get it to work. Still didn't have access to child's state.
- mercurial 11y agoUse 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.