OnDomReady as event in react .js
1 answer
React.render
executes a callback that is executed when the component is rendered: docs
ReactComponent render( ReactElement component, DOMElement container, [function callback] )
[...]
If an additional callback is provided, it will be executed after rendering or updating the component.
You can watch this function run to determine when your component is displayed.
+3
source to share