Is it expensive to store React components in variables?
I have basic knowledge of JavaScript. Currently, working in a ReactJS project in which developers have assigned ReactJS component to a variable as following:
formComponent = (
<Component1
propOne={...}
/>
)
Is it the right way to do? How expensive it is?