Question 6 of 10Pro Only
Compare the component lifecycle in React, Vue, and Angular. What are the equivalent lifecycle hooks across these frameworks?
Sample answer preview
## Component Lifecycle Overview Each framework provides hooks to run code at specific points in a component's life: creation, updates, and destruction. ## React Lifecycle (Functional Components with Hooks) React uses `useEffect` to handle lifecycle events: ```javascript function…
lifecycle hooksuseEffectonMountedngOnInitngOnDestroyonUnmounted