JSON Data format for react-select #5226
Answered
by
manjushsh
reactDev02
asked this question in
Q&A
-
I have JSON something like this
Is there any way I can pass this to react-select without creating new variable with value and label and still able to access as normal? |
Beta Was this translation helpful? Give feedback.
Answered by
manjushsh
Jun 11, 2022
Replies: 1 comment 1 reply
-
Hi @reactDev02 Please do check docs first. Default Props If you have data like this,
Just pass following as props to Select component:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
reactDev02
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @reactDev02
Please do check docs first. Default Props
If you have data like this,