I hereby claim:
- I am avianto on github.
- I am avianto (https://keybase.io/avianto) on keybase.
- I have a public key whose fingerprint is E971 37F9 B70F F58F BB62 8029 B3CD 467E F558 BCA0
To claim this, I am signing this object:
Access method inside React component: | |
OLD (reliable but not future proof) | |
const ourComponent = ReactDOM.render(<OurComponent />, document.getElementById("app")); | |
ourComponent.someMethod() // would call the method | |
NEW | |
ReactDOM.render(<Page ref={(ourComponent) => {window.ourComponent = ourComponent}} />, document.getElementById("app")); | |
window.ourComponent.someMethod() |
I hereby claim:
To claim this, I am signing this object: