import React from 'react';
import Demo from './demo';

main();
function main() {
	let app;

	if (process.env.NODE_ENV === 'development') {
		app = document.createElement('div');
		app.setAttribute('id', 'demo');
		document.body.appendChild(app);
	} else {
		app = document.getElementById('demo');
	}

	React.render(<Demo />, app);
}

@@ -89,56 +89,8 @@
 p;%0A%0A
-%09if (process.env.NODE_ENV === 'development') %7B%0A%09
 %09app
@@ -123,17 +123,16 @@
 'div');%0A
-%09
 %09app.set
@@ -156,17 +156,16 @@
 demo');%0A
-%09
 %09documen
@@ -192,62 +192,8 @@
 pp);
-%0A%09%7D else %7B%0A%09%09app = document.getElementById('demo');%0A%09%7D
 %0A%0A%09R

simplify main function