OnDomReady as event in react .js
I am using response.js to render my page.
Is there a way to detect when the page loads?
Perhaps something similar to the onDomReady event.
+3
31415926
source
to share
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
Michelle tilley
source
to share