React.render(<MyComponent/>, mainNode, function() {
console.log('2');
});
console.log('1');
prints
2
1
Also, a scrollTop() in the callback does not work. It works if I call it after render() returns.
Is React.render() synchronous?
Is the DOM rendered when the function returns?
When is the callback called? What would I want to do in the callback?