I am transforming my website to react site but the script tags inside do not work. It just says unexpected token. Here's the code.
<div className="people">
How many of you shall we expect?
<br />
<select id="noofpeople">
<option>1 person</option>
<script>
var count = 2;
while(count<21){
document.write("<option>"+count+" people"+"</option>");
count++;
}
</script>
</select>
</div>