First of all, I know this platform is build to solve practical programming problems not to ask for suggestions. But if you can clear doubt and can give your valuable suggestions then that will be a great help.
So, We have multiple options available to pass data from one component to another. For eg, we can pass data as props, we can set data into redux and another component can subscribe to store get updated data, we can set data into location state (not react one) while redirecting user to another screen and user can use useLocation hook to get data from location state.
So the question is about location state basically, Should we use location state method to pass data from one component to another? I know with redux and react way we can do that also but I found this location state method very easy as we don't have to dispatch action, reset state, etc.
Welcoming your suggestions :)