Archived
What will this component display?
const MyComponent=({index})=>{
const [myName, setMyName]= useState('');
const myMemoisedName= useMemo(()=>`${myName}`,[]);
useEffect(()=>setMyName('W3D'));
return<div>{myMemoisedName}</div>;
};
-4
Community Evaluations
Similar QuestionsMore questions about React