Question from the React ⚛️ test

Use useCallback to optimize rendering in React

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

Check the exact statement(s)

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