I want to invoke the function good without calling it from a event. It should run as soon as page opened just like in the self invoking javascript function.
Here is an example 
import React from 'react';
class App extends React.Component {
   good(){
      console.log('I was triggered during good')
   }
   render() {
       console.log('I was triggered during render')
       return(
          <div>
             good();  
          </div>
      );
   }
}
export default App;
 
     
    