I am gettin gused to using React. My favorit framework to use is Angular, but It seems I have to learn React. So here are my notes I am saving incase I get stuck in the future. I amusing IONIC V6

Use this code to embed a For Loop into the Ionic React application into the HMTL using this code:

This is a helpful link where you can find the answer: https://stackoverflow.com/a/39438518

          <IonItem>
            <IonLabel>Top Number</IonLabel>
            <IonSelect value={hairColor} okText="Okay" cancelText="Dismiss" onIonChange={e => setHairColor(e.detail.value)}>


              {[...Array(8)].map((ei=> {
                return <IonSelectOption value="brown">{i+1}</IonSelectOption>
              })}
            </IonSelect>
          </IonItem>