Last active
August 13, 2019 18:20
-
-
Save Tevinthuku/f19148188f6c1d92695ee13fb9df9430 to your computer and use it in GitHub Desktop.
Duplicate call to render
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/jsx"> | |
/** @jsx tevreact.createElement */ | |
/** In the comment above we are telling babel which function it should | |
use the default is React.createElement and we want to use | |
our own createElement function*/ | |
const appElement = ( | |
<div> | |
<h1>Hello Tev, Have you watched John Wick</h1> | |
</div> | |
) | |
tevreact.render(appElement, document.getElementById("app")); | |
tevreact.render(appElement, document.getElementById("app")); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment