const Component = ({ text }) => (
<div>{text}</div>
)
const Example = () => (
<div>
<Component text="123" />
{Component({ text: "123" })}
</div>
)
Is there any difference between the two methods of rendering? Which is preferred and why?