Last active
January 16, 2019 17:52
-
-
Save kbberker/e66c46a97677a44bdc6c052981259c5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//&& will only do the rhs if lhs is truthy | |
this.props.botPresent && this.state.bots.map(...) | |
let { bot } = props; | |
// is equivalent to.. | |
let bot = props.bot; |
This file contains hidden or 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
//All shortcuts from ES7 React/Redux/GraphQL/React-Native snippets Extention | |
// "imrc" shortcut in VS Code | |
import React, { Component } from 'react' | |
//"ccc" shortcut in VS Code | |
class Xxx extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { } | |
} | |
render() { | |
return ( ); | |
} | |
} | |
export default Xxx; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment