What does defaultOptions in react-select do?
7 December 2023 (Updated 7 December 2023)
The defaultOptions prop controls what options to show before the user starts searching. It can be one of:
true: The results for theloadOptionsprop will be autoloaded.- Array of options: Will be used as the default set of options.
Sources
Tagged:
react-select
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment