<IonList> <IonItem> <div> ... </div> </IonItem> <IonList>
The content inside the
<div> tag will not render properly (incorrect styling). If you remove the
<div> it will show just fine. I’m trying to make an
IonItem that spans the entire width but with a container inside the item to span only a percentage of the width.
This problem occurs with
<p>, etc. Someone asked this on StackOverflow: https://stackoverflow.com/questions/46991253/why-putting-anything-div-p-or-just-text-inside-ion-item-after-ion-input-is-n
But the answer says to tag the
item-content. But as far as I can see that doesn’t exist for Ionic React? Is there any way to accomplish this?