Alright, I am twisting my brain a bit on this one…
I have a component, think of it as a console log/output, or a user notification component. I want to send messages to it, one at a time (e.g. when other stuff happens elsewhere in the app, I want to print out a new message to the component).
With React and props/state however, the parent component will keep re-sending the data on each app refresh. And the user may be seeing an expired message, presented as new.
So I need a simple and clear way to deal with this design pattern, without creating too much complexity in the component, or the parent (especially when it’s 2-3 levels above).