I have a React component that receives an array or objects via props . Something I would like to do is reorder events with these details. However, it seems that re-rendering of React only occurs when state changes.
Currently, my ordering is processed in the parent object and a method is passed to process the order through support, but ideally I want the component responsible for rendering these objects to process the order as well.
Chucking props in state seems bad, but what's the best thing to do here?
source share