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."
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
and this what i want.
I was talking about the first parameter :)