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
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