Reactjs – React: How to detect the same components
First of all, sorry for my poor English! (translated by DeepL) MyComponent has some 'state' like a counter and displays it. In pattern A, when the hiddenFlag is switched, 'state' of the first MyComponent is kept. In pattern B, when…