Hard
const SomeComponent=({name, firstName})=>{
if(!name){
return null;
}
const uppercaseName= useMemo(()=>firstName.toUpperCase(),[]);
return<span>${`${name} ${uppercaseName}`}</span>;
};
What are the issues with this code?
Author: Clément DEVOSStatus: PublishedQuestion passed 3962 times
Edit
Similar QuestionsMore questions about React