I quickly created this sandbox to explain my problem more easily.
I want that when in click on my clickableItem
the value of the input from the simplePopOver
component take the value from the state from the clickableItem
component.
For that I initialize the state from simplePopOver
with a props but the problem is that state is always equal to the init value 'initialisation'
whereas the props has the good value (check console.log()
). Do you have an idea ? Is it an asynchronous problem ?
I don't think my explanations are clear, but if you check the sandbox it will be more clear :)