Usando ES6 definido no TypeScript
const [elements, setElements] = useState<Set<string>>(new Set())
Evergreen Tomato
const [elements, setElements] = useState<Set<string>>(new Set())