So ionPage is more of an internal API that we use as a structure component.
In Angular, we automatically apply this to the component that is connected to a route, so we don’t force people to add it to the dom.
But react doesn’t behave the same, so we needed a component that creates a div with a class of ion-page
.
We don’t really document as it’s mostly just used internally for navigation.
If you’re in a React project, just make sure your components connected to a route use IonPage
as the wrapper.
function HomePage{
return (
<IonPage>...</IonPage>
)
}
But Angular folks do not need to worry about this.