You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
401 B
17 lines
401 B
/**
|
|
* @jsx React.DOM
|
|
*/
|
|
|
|
var 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:CONTROLLED_INPUT_NULL_VALUE_COMPONENT} ),
|
|
document.getElementById("ControlledInputNullValue")
|
|
);
|