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.
622 B
622 B
id | title | layout | permalink | prev | next |
---|---|---|---|---|---|
false-in-jsx | False in JSX | tips | false-in-jsx.html | initial-ajax.html | communicate-between-components.html |
Here's how false
renders in different contexts:
Renders as id="false"
:
React.render(<div id={false} />, mountNode);
String "false"
as input value:
React.render(<input value={false} />, mountNode);
No child:
React.render(<div>{false}</div>, mountNode);
The reason why this one doesn't render as the string "false"
as a div
child is to allow the more common use-case: <div>{x > 1 && 'You have more than one item'}</div>
.