Which of the following statement is true for controlled components in React.js?

Q & ACategory: React JSWhich of the following statement is true for controlled components in React.js?
Admin Staff asked 2 years ago

Which of the following statement is true for controlled components in React.js?

a) The source of truth is DOM.

b) The source of truth can be anything.

c) The source of truth is a component state.

d) None of the above.

1 Answers
Admin Staff answered 2 years ago

c) The source of truth is a component state.