react component render method being called twice for no reason

import './App.css'; import SolarSystem from './components/solarSystem/solarSystem'; class App extends React.Component { componentDidMount(){ console.log("mounting"); } componentDidUpdate(){ console.log("updating"); } //const [SSVisibility, setSSVisibility] = useState(true); render(){ console.log("rendering app"); return ( <div className="App">ssssssssssssssssssssssssssssssss {/* <SolarSystem isShowing={"yolo"} toggle={"polo"}></SolarSystem> */} </div> ); } } export default App; With this simple code, my render method is being called twice. And i cant … Read more