Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to keep single instance of component

So say I have Array of 5 items. When I’ll map through this array and will render my components I’ll have 5 components. In this case every component has own instance.

But I want to “replace” component with every iteration. So in my case I’ll have every time only one component instead of 5.

How can I do this?

Comments