📅  最后修改于: 2022-03-11 15:04:02.401000             🧑  作者: Mango
//instead of passing in a function as a child
â //this is not the correct way of doing it
const MyElement = () =>(
<>
This is a sample element
>
)
...return( )
â
//do this instead
const MyElement = (
<>
This is the correct way
>
)
...return( )