You get a bonus - 1 coin for daily activity. Now you have 1 coin

What are stateless components? in REACT

Practice



If the behaviour does not depend on its state, then it can be a stateless component. You can use either a function or a class to create stateless components. But unless you need to use a lifecycle hook in your components, you should go with functional components. There are many benefits if you decide to use functional components here; they are easy to write, understand and test, they are a little faster, and you can
this
entirely avoid the keyword.
created: 2020-02-23
updated: 2026-03-09
176



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone