recompose icon indicating copy to clipboard operation
recompose copied to clipboard

How to multiply one stateless component so that each of the list has an independent state?

Open sinevitch opened this issue 6 years ago • 1 comments

how to multiply one stateless component so that each component of the list has an independent state?

I have a stateless component using the recompose library The file is a container: image

This file represents a view image

When I click on one component to change the state of the second image

image How to multiply one stateless component so that each component of the list has an independent state? I have, when I click on one of the components, the state change in the second. How to clone this component, so that the clones have an independent state?

sinevitch avatar Sep 15 '18 14:09 sinevitch

Both of ColumnPresentation should already had their own state. Except for there is something else wrong with your code.

illuminist avatar Nov 01 '18 04:11 illuminist