New lifecycle methods: `mount` and `init` to support server-side rendering.