Render formatted (unminified) HTML in React (SSR with Next.js)
How can I render formatted (unminified) HTML in React (SSR with Next.js)?
How can I render formatted (unminified) HTML in React (SSR with Next.js)?
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
I use this function to send html file to client, but in client I get nothing (blank page) without error. Something I wrong?, please help?