Categories

Nov 26, 2019 in React JS

Q:

What are the stateless components?

1 Answer

Nov 26, 2019

On the off chance that React components are basically state machines that produce UI markup, at that point what are stateless segments? 

Stateless components (a kind of "reusable" components) are simply pure functions that render DOM construct exclusively with respect to the properties gave to them. 

As you can see, this component has no requirement for any internal state — not to mention a constructor or lifecycle handlers. The yield of the component is absolutely a function of the properties gave to it.

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

Related questions

Madanswer
Mar 30 in React JS
Jul 2, 2019 in React JS
Mar 30 in React JS
...