dowjones / react-dropdown-tree-select

Lightweight, accessible, customizable and fast Dropdown Tree Select component for React
https://dowjones.github.io/react-dropdown-tree-select/
MIT License
468 stars 269 forks source link

React useState error #635

Closed parth469 closed 1 year ago

parth469 commented 1 year ago

image

i was try to use useState to get all changes happen in onChange

problem -> If i use useState then it will not display any changes we make in display part ( if we deselect and it remove and select any then also not display )

but if i remove useState and just print then it working fine