in React JS by
Q:
How can you set a default value for an uncontrolled form field?

a) By using the value property

b) By using the defaultValue property

c) By using the default property

d) It is assigned automatically.

1 Answer

0 votes
by

B is the correct option. We can set a default value for an uncontrolled form field by using the defaultValue property.

Related questions

0 votes
asked Apr 15 in React JS by Robindeniel
0 votes
asked Apr 15 in React JS by Robindeniel
0 votes
asked Apr 15 in React JS by Robindeniel
...