--- title: How can I set the value of a select input in React? shortTitle: Select input value type: question tags: [react,components,input] cover: two-doors excerpt: Learn of all the different ways to set the value of a selected input in React with this quick guide. dateModified: 2021-06-12T19:30:41+03:00 --- ### Adding selected to an option A very common way of setting a ` callback(value)} > {values.map(([value, text]) => ( ))} ); } ``` ### Setting value for the select While this approach closely resembles HTML and feels intuitive, there is an easier way to do the same thing. [React](https://reactjs.org/docs/forms.html#the-select-tag) provides us with a shared API between ``, `