Fix race condition in backwards compatible way – fixes #101 1556d28 Replace JSX.Element type with React.ReactElement 87c7a52 v2.5.1...v2.5.2