Skip to content

Instantly share code, notes, and snippets.

@madox2
Created August 8, 2017 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madox2/2c3640ca9b445a6ff991d752903d08d9 to your computer and use it in GitHub Desktop.
Save madox2/2c3640ca9b445a6ff991d752903d08d9 to your computer and use it in GitHub Desktop.
Snippets to prettify
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