Infosys interview question

Tell me syntax for useEffect?

Interview Answer

Anonymous

23 Sept 2024

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