Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

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

Open
sinevitch opened this issue Sep 15, 2018 · 1 comment

Comments

@sinevitch
Copy link

sinevitch commented Sep 15, 2018

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?

@illuminist
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants