Infosys Interview Question

Tell me syntax for useEffect?

Interview Answer

Anonymous

Sep 23, 2024

import { useEffect } from 'react'; useEffect(() => { return () => { }; }, [ ]);