Skip to content

Instantly share code, notes, and snippets.

View timscott's full-sized avatar

Tim Scott timscott

  • Lunaverse Software
View GitHub Profile
@timscott
timscott / bindingInRender.js
Last active July 5, 2017 14:50 — forked from coryhouse/bindingInRender.js
Example of binding in render to pass relevant data to a click handler.
import React from 'react';
class App extends React.Component {
constructor() {
this.state = {
users: [
{ id: 1, name: 'Cory' },
{ id: 2, name: 'Meg' }
]
};