How to set a state variable to an empty array in React Typescript – Reactjs
I have a simple useState function that looks like this: const [value, setValue] = useState<values[]>([]); Theoretically, this will mean that the state of value defaults to an empty array. I then have a function that I've defined like this: function…