mirror of
https://github.com/facebook/react.git
synced 2026-02-24 20:53:03 +00:00
24 lines
365 B
JavaScript
24 lines
365 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
export default function SimpleValues() {
|
|
return (
|
|
<ChildComponent
|
|
string="abc"
|
|
emptyString=""
|
|
number={123}
|
|
undefined={undefined}
|
|
null={null}
|
|
nan={NaN}
|
|
infinity={Infinity}
|
|
true={true}
|
|
false={false}
|
|
/>
|
|
);
|
|
}
|
|
|
|
function ChildComponent(props: any) {
|
|
return null;
|
|
}
|