const [elements, setElements] = useState<Set<string>>(new Set<string>())
- To setup simple typescript project follow these step mkdir ts-proj cd ts-proj npm i typescript --save-dev npx tsc --init touch index.ts npx tsc index.ts && node index.js