<select value={author} onChange={({ target }) => setAuthor(target.value)} >
{authors.map(author =>
<option key={author.name} value={author.name}>
{author.name}
</option>)}
</select>
This is in React/NodeJS. Everything works as expected, and the first option/author.name is displayed by default. However, it is not being set as the default value for the React state, and clicking on the dropdown and then selecting it does not change this. If another option is selected and then you select the first option, it works as expected.