Skip to content

Instantly share code, notes, and snippets.

@kbberker
Last active January 16, 2019 17:52
Show Gist options
  • Save kbberker/e66c46a97677a44bdc6c052981259c5d to your computer and use it in GitHub Desktop.
Save kbberker/e66c46a97677a44bdc6c052981259c5d to your computer and use it in GitHub Desktop.
//&& 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;
//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