I need to clear the the PeoplePicker
after use.
<PeoplePicker
selectedPeople={addedMembers}
selectionMode={"multiple"}
show-max={50}
selectionChanged={onPeoplePickerChanged}
/>;
So I set addedMembers
to []
but it does not work.
I saw an answer involving ref here but it uses a class and I only know hooks. Anyone can help?
Thank you