--- id: controlled-input-null-value title: Value of null for controlled input layout: cookbook permalink: controlled-input-null-value.html prev: children-prop-type.html next: componentWillReceiveProps-not-triggered-after-mounting.html --- ### Problem You specified a `value` parameter for your form input, but the input value can still be modified, contrary to [what you'd expect](/react/docs/cookbook/forms.html). ### Solution You might have accidentally set `value` to `undefined` or `null`. The snippet below shows this phenomenon; after a second, the text becomes editable. ```js /** @jsx React.DOM */ React.renderComponent(, mountNode); setTimeout(function() { React.renderComponent(, mountNode); }, 2000); ```