All jobs / Frontend / web developer / React

Frontend / web developer interview question · 0–1 years

What is a controlled input?

The strongest answer

An input whose value comes from state and whose onChange updates that state, so React is the single source of truth for what the field shows

Why it works

Right. Value from state, change into state.

What a good answer covers

Answers that fall short

Who gets asked this

More React questions