Keep a Set in state that renders again when it changes.
This is custom React hooks, you need to follow the Basic Rules when you use it.
add, delete and clear render the component again.
const useSet = <T>(values?: readonly T[]) => Set<T>