The whitespace is required to separate the checkbox from the text. Otherwise the JSX compiler remove all the whitespace and the new lines placed just for beautify the code.

You can find a good explanation here.

https://github.com/facebook/jsx/issues/19