import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.js';

function getContainer (id: string) {
  return document.getElementById(id)
}

ReactDOM.render(
  <App />,
  getContainer('appContainer')
);
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.js';

ReactDOM.render(
  <App />,
  document.getElementById('appContainer')
);
console.log(App)
--- 
+++ 
@@ -2,8 +2,11 @@
 import ReactDOM from 'react-dom';
 import App from './app.js';
 
+function getContainer (id: string) {
+  return document.getElementById(id)
+}
+
 ReactDOM.render(
   <App />,
-  document.getElementById('appContainer')
+  getContainer('appContainer')
 );
-console.log(App)
Update example to actually include some typed code
