0 votes
in ReactJS by
retagged by
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, 2022 in ReactJS by Robindeniel
0 votes
asked Apr 15, 2022 in ReactJS by Robindeniel
...