Question from the React ⚛️ test

Use useCallback to optimize rendering in React

Easy
const SomeComponent=({onChange, id})=>{
...
    return<MyCustomComponent id={id} onClick={()=>onChange(id)}/>;
};

Check the exact statement(s)

Author: Clément DEVOSStatus: PublishedQuestion passed 3990 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!