Skip to content

Instantly share code, notes, and snippets.

@danielmoralesp
Last active March 15, 2019 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmoralesp/dfc49295c33d36f60c93030a15e33520 to your computer and use it in GitHub Desktop.
Save danielmoralesp/dfc49295c33d36f60c93030a15e33520 to your computer and use it in GitHub Desktop.
class App extends Component {
constructor(props){
super(props)
this.state = { lat: null, errorMessage: '' }
}
onMouseMove = (event) => {
this.setState({
styleOne: transform(-event.clientX / event.clientY),
styleTwo: transform(event.clientX / event.clientY)
})
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment