Created
August 8, 2017 18:46
-
-
Save madox2/2c3640ca9b445a6ff991d752903d08d9 to your computer and use it in GitHub Desktop.
Snippets to prettify
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 a = {b: 1, c: 2} | |
cost Component = () => ( | |
<div prop={1} | |
other={2} /> | |
) | |
import { hahahahahahaha, heheheheheheh, huhuhuhuhuhu, hihihihihihi, hohohohoho } from 'react-hahahaha-heheheh-huhuhu' | |
function foo( | |
param1, param2, | |
param3 | |
) { | |
// ... | |
} | |
const a = true | |
? 100 | |
: 200 | |
const Component = () => ( | |
<span prop={true} /> | |
) | |
function foo() { | |
console.log(1) | |
console.log(1) | |
} | |
const Component => <div prop={1}/> | |
const multiply=(a)=>a*a | |
//comment | |
/*comment*/ | |
/* | |
comment | |
*/ | |
function foo() { | |
return | |
2 | |
} | |
function*foo() { | |
// ... | |
} | |
if (true) | |
return 1000 | |
function foo() { return false } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment