in React JS by
Q:

What’s the difference between an Element and a Component in React?

▼ Show 1 Answer

0 votes
by

Basically, a React component describes what you need to see on the screen. Not all that basically, a React element is a protest portrayal of some UI. 

A React component is a function or a class which alternatively acknowledges input and returns a React component (ordinarily by means of JSX which gets transpiled to a createElement invocation). 

React JS
Learn More with Madanswer

Related questions

0 votes
asked Jan 30 in React JS by rajeshsharma
  • element
  • component
  • react-element
  • react-component
  • react-element-vs-component
+1 vote
asked Jun 25, 2019 in Dot Net by Venkatshastri
...