NiYO interview question

How to make interactions between two component (State, props coming into the matter)