The createPage function allows you to register a custom React page in the Spotify client (via Spicetify).
It handles:
- Mounting/unmounting your React component into Spotify’s DOM.
- Navigating to your page using Spotify’s internal
History. - Returning navigation helpers (
goToPage,goBack) so you can trigger page transitions programmatically.