React-select: How to set the default selected value while very first time loading

Created on 20 Sep 2016  路  2Comments  路  Source: JedWatson/react-select

<Select defaultValue ="Category" />

Some thing like above code so that we can set he default selected value into select box.

Most helpful comment

Have you tried <Select value="Category" />?

Edit: See API documentation
https://github.com/JedWatson/react-select#further-options

All 2 comments

Have you tried <Select value="Category" />?

Edit: See API documentation
https://github.com/JedWatson/react-select#further-options

Thanks Cein-Markey.

I was trying this but some thing went wrong into my code only so that I was assuming some like 'defaultValue'.

But finally I have fix this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MindRave picture MindRave  路  3Comments

steida picture steida  路  3Comments

Meesam picture Meesam  路  3Comments

joshualimpj picture joshualimpj  路  3Comments

MalcolmDwyer picture MalcolmDwyer  路  3Comments