Helper function to retrieve or create the App singleton.
Optional
The selector for the root element. If provided, a new App instance is created and set as the singleton.
The App singleton instance.
Helper function to retrieve or create the App singleton.