123456789101112const Foo = props => <>{props.children ? <td>{props.children}</td> : undefined}</> export default function Home() { return <table> <tbody> <tr> <Foo><p>bar</p></Foo> </tr> </tbody> </table>}