As in the title. I have been used the react-select component and I pass props to it as the default value. but it did not show. why did this happen? even when I pass string to it like this defaultValue="aa"
this is the sandbox for my code:
enter link description here
2
Answers
Please Check the sandbox. I’ve made some changes might help you.
The
defaultValue
should be theOption
type, see StateManager Propscodesandbox
You can find the official example home#getting-started