How can you set a default value for an uncontrolled form field?

Q & ACategory: React JSHow can you set a default value for an uncontrolled form field?
Admin Staff asked 2 years ago

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 Answers
Admin Staff answered 2 years ago

b) By using the defaultValue property