adspace
When should you use the top-class elements for the function element?
Answer Posted / Pradip Kumar Srivastava
Top-level class components (es6 classes extending React.Component) are preferred when you need to access or manipulate lifecycle methods, such as componentDidMount, componentDidUpdate, and componentWillUnmount.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers