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 4069 times
Edit
5
Community Evaluations
Similar QuestionsMore questions about React