i have this code written in html
<select id ='Font_Size' onchange="ChangeFont()">
<option>Font Size </option>
<option id ='sizeUp'>Large </option>
<option id ='normal'>Normal</option>
<option id ='sizeDown'>Small</option>
</select>
React.createElement('input',{type:'select',onChange:this.ChangeFont},React.createElement("input",{type:"Option"}))
but i would like to create a react element that will create a selection field using the function React.createElement() and display it as the above code would. the code at the bottom is what i had tried but it does not work
select, notinput. I think what you wrote would generate html something like<input type="select" onchange=...