Skip to content

Instantly share code, notes, and snippets.

View joevo2's full-sized avatar
⚛️
React-ing to Go

Joel joevo2

⚛️
React-ing to Go
View GitHub Profile
@joevo2
joevo2 / setData.js
Last active October 11, 2016 12:59
This is just about scope :)
setData = data => {
console.log('setData', data)
this.setState({ test: data })
}
getData = () => {
const setData = this.setData
Axios
.get('...')