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

geraldfullam picture geraldfullam  路  3Comments

juliensnz picture juliensnz  路  3Comments

coder-guy22296 picture coder-guy22296  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

mbonaci picture mbonaci  路  3Comments