Files
react.dev/js/cookbook/cb-08-controlled-input-null-value.js
2013-10-29 10:14:20 -07:00

17 lines
425 B
JavaScript

/**
* @jsx React.DOM
*/
var CB_08-CONTROLLED-INPUT-NULL-VALUE_COMPONENT = "
/** @jsx React.DOM */
React.renderComponent(<input value="hi" />, mountNode);
setTimeout(function() {
React.renderComponent(<input value={null} />, mountNode);
}, 2000);
";
React.renderComponent(
ReactPlayground( {codeText:CB_08-CONTROLLED-INPUT-NULL-VALUE_COMPONENT} ),
document.getElementById("cb-08ControlledInputNullValueExample")
);