re: How to pass state between components in reactjs VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hello Zeyad, thanks for this state tutorial! I was asking myself several questions while reading it though. I hope you can enlighten me :) Why ...
 

Thanks Thomas, to your first question, you're right it'll be prettier, you're welcome to contribute and update this on GitHub repo.
To your second question, from Reactjs documentation

"The second parameter to setState() is an optional callback function that will be executed once setState is completed and the component is re-rendered."

and this what i want.

 
code of conduct - report abuse