interface MyFooType { value: string; } const [foo, setFoo] = useState(); // if not array const [foo, setFoo] = useState([]); // if it's an array