Skip to content

Instantly share code, notes, and snippets.

@Tevinthuku
Last active August 13, 2019 18:20
Show Gist options
  • Save Tevinthuku/f19148188f6c1d92695ee13fb9df9430 to your computer and use it in GitHub Desktop.
Save Tevinthuku/f19148188f6c1d92695ee13fb9df9430 to your computer and use it in GitHub Desktop.
Duplicate call to render
<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