Created
May 15, 2018 11:20
-
-
Save singerxt/5130dd19cad37e505b11d076677c1fd1 to your computer and use it in GitHub Desktop.
This file contains 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
import React, { Component } from 'react' | |
import style from './style.css' | |
import { patchGnome } from '../../utils/HrApiHelper' | |
class Edit extends Component { | |
patchGnome() { | |
const testDate = { | |
id: 1233, | |
name: 'siema', | |
}; | |
patchGnome(testDate.id).then(console.log).catch(console.log); | |
} | |
render() { | |
return <div onClick={this.patchGnome}>test</div> | |
} | |
} | |
export default Edit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment