Answers for "map array to a select tag"

0

map array to a select tag

var Answer = props => 
    <select>{props.data.map((x,y) => <option key={y}>{x}</option>)}</select>;
Posted by: Guest on January-08-2021

Browse Popular Code Answers by Language