Sign in
Log inSign up

Is it expensive to store React components in variables?

Aron's photo
Aron
·May 7, 2016

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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct