What is the difference between mounting in server-side rendering and client-side rendering?
In server-side rendering (SSR), the componentDidMount lifecycle method is not called on the server. The component is rendered to HTML on the server, but the componentDidMount method only executes when the JavaScript loads and the component 'hydrates' on the client. This is because componentDidMount is specifically for interacting with the browser DOM, which doesn't exist on the server.