Select the best answer.
function useCounter() { const [count, setCount] = React.useState(0); return { count, inc: () => setCount((c) => c + 1) }; }