Skip to content

Commit

Permalink
Update example to actually include some typed code
Browse files Browse the repository at this point in the history
  • Loading branch information
trodrigues committed Nov 8, 2017
1 parent d8d3511 commit 5a32a07
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/react-babel-allowjs/src/main.tsx
Expand Up @@ -2,8 +2,11 @@ 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 />,
document.getElementById('appContainer')
);
console.log(App)
getContainer('appContainer')
);

0 comments on commit 5a32a07

Please sign in to comment.