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

This code will auto generate an array with 10 elements of the same value 1-10 items in the array.

const appPages2: any = [Array.from(Array(10).keys())];

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>