I am having trouble interpreting the initial value of the useState in the following code.
const [input, setInput] = useState<string>("");
console.log(input);
console.log(!input);
The first console.log returns the value that I'm expecting, which would be a string, but the second returns a boolean, I'm not understanding that conversion.
Could you explain to me why? I feel that it is something basic but I have to ask it. Thank you very much.
