Good mock interview practise, pls upload more for web designer profile
@shivambansal33064 ай бұрын
4:34 No I think returning clean up function in useEffect achieves the same functionality as ComponentWillUnmount in class components... if somebody knows... please tell me
@ShivaConceptSolution4 ай бұрын
yes it is possible but functional component not provide proper handling means structure to react life cycle, useEffect(() => { // Code to run on component mount // Optional cleanup function if needed return () => { // Code to run on component unmount }; }