Categories

Nov 26, 2019 in React JS

Q:

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

1 Answer

Nov 26, 2019

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). 

Click here to read more about React JS
Click here to read more about Insurance

Related questions

Madanswer
Jun 19 in React JS
Mar 1 in React JS
Oct 9, 2019 in React JS
...