Skip to content

Instantly share code, notes, and snippets.

View dbslone's full-sized avatar

David Slone dbslone

  • Los Angeles, CA
View GitHub Profile
const jsonGraph = {
projects: {
123: {
otherDetails: value
}
}
}
this.props.falcor.set(jsonGraph).then(res => {
@dbslone
dbslone / no-bind.jsx
Created June 27, 2017 23:11
No .bind() or Arrow Functions in JSX Props
// Bad
export default class MyComponent extends React.Component {
onClick() {
// do some stuff here
}
render() {
return (
<div onClick={::this.onClick}>Click Me</div>
)

Keybase proof

I hereby claim:

  • I am dbslone on github.
  • I am dbslone (https://keybase.io/dbslone) on keybase.
  • I have a public key whose fingerprint is EA6C 3A5D 00E8 A86B 16B6 5065 98D3 7BFE CAF4 E3A9

To claim this, I am signing this object: