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

When to use a class component over a function component? in REACT

Practice



If a component needs state or lifecycle methods, then use a class component, otherwise use a function component. However, as of React 16.8, with the addition of hooks you can use state, lifecycle methods and other features that were previously available only in class components directly in your function component.

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