Where is My Component being called the first time in the following script?
Import React from 'react';
import { render } from 'react-dom';
import MyComponent from './MyComponent';
const myComponent = render(<MyComponent />, document.getElementById('root'));
setTimeout(() => {
myComponent.setState({
heading: 'React Awesomesauce',
content: 'Done!'
});
}, 3000);
Thx!