in React JS by
Q:

What are the stateless components?

1 Answer

0 votes
by

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

0 votes
asked Mar 30, 2020 in React JS by amita rallin
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked May 20, 2020 in React JS by SakshiSharma
0 votes
asked Nov 26, 2019 in React JS by AdilsonLima
0 votes
asked Mar 1, 2020 in React JS by RShastri
...