0

This is what confuses me alot:

When we give a variable a for an example a empty string we do it like this:

const empty = ""

But for useState we do it like this:

const [color, setColor] = useState("Black")

But why? I get so confused that the syntax for useState looks like that. And ofc searching did not help me.

0 Answers0