Here is a simple example:
const Foo = () => { return ( foo ); } class Bar extends React.Component { render() { retur
const Foo = () => foo; class Bar extends React.Component { render() { return ( bar ) } } console.log(React.isValidElement()); console.log(React.isValidElement());