Created
October 17, 2018 07:36
-
-
Save lukewatts/085e38b3fffca16b54683cdbc86b44a9 to your computer and use it in GitHub Desktop.
Medium Article - Use JSX with any MV* framework - Code Snippets - 14 - Test Component with JSX
This file contains 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
class Test extends Component | |
{ | |
constructor() | |
{ | |
super(); | |
this.view(document.getElementById('app')); | |
} | |
render() | |
{ | |
return ( | |
<h1>Test JSX!</h1> | |
); | |
} | |
} | |
new Test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment