This is really helpful, and using the callback form of `setState` helped me out recently with a bug…
Andrew Patton

Also note that replaceState is not available in ES6 components, and may be removed in the future (see the documentation at

Like what you read? Give Tomas Carnecky a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.