I have a component that doesn\'t re-render when the state variable changes and I don\'t understand why. Here is the code:-
export default function SalesItem(p