# `useSet` React state hook that tracks a [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). ## Usage ```jsx import {useSet} from 'react-use'; const Demo = () => { const [set, { add, has, remove, reset }] = useSet(new Set(['hello'])); return (
{JSON.stringify(Array.from(set), null, 2)}
); }; ```