Gary Sieling

Fixing React error: “Input is changing a controlled input of type text to be uncontrolled.”

If you upgrade to React 15, you can get this value:

Input is changing a controlled input of type text to be uncontrolled.

This means you’re passing an undefined value to a JSX component:

var query = undefined;

return ();

To fix this, you just need to find the spot and set it to the empty string or some other value.

Exit mobile version