Quiz

This quiz will test your knowledge on creating strongly-typed function component state.

We'll cover the following...

Creating strongly-typed function component state

1.

What is the inferred type for the name state from the useState hook?

const [name, setName] = React.useState("");
A.

any

B.

string

C.

unknown


1 / 5

Now that we have got to ...