Created
July 7, 2016 10:17
-
-
Save kazagkazag/409d667a476fc4196013ca705e995fc5 to your computer and use it in GitHub Desktop.
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
const MY_CONST = 44; | |
function doMagic(regularStuff) { | |
return "magical stuff"; | |
} | |
export class MyComponent extends Component { | |
render() { | |
return ( | |
<main> | |
<p>Some text</p> | |
<ImportedComponent /> | |
{"Text" + MY_CONST} | |
{doMagic()} | |
{[1,2,3].map((element) => { | |
return element * 2; | |
})} | |
<button onClick={doMagic}>label</button> | |
<button onClick={() => doMagic(event)}>label</button> | |
</main> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment