React-select Drop Down Choices Not Storing Correctly
I'm using a react-select drop down to allow users to choose multiple options between A, B and C. Currently this works on the UI but when an option is de-selected, it is not removed
Solution 1:
You don't need another choice variable.you already have selectedChoice
state that will store all the selected value for you.
Working Answer : https://codesandbox.io/embed/0pr9yoo8l
Post a Comment for "React-select Drop Down Choices Not Storing Correctly"