Comparing version 0.1.1 to 0.1.2
@@ -10,3 +10,4 @@ { | ||
"devDependencies": { | ||
"react-scripts": "0.9.5" | ||
"react-scripts": "0.9.5", | ||
"react-tilt": "^0.1.1" | ||
}, | ||
@@ -19,2 +20,2 @@ "scripts": { | ||
} | ||
} | ||
} |
import React, { Component } from 'react'; | ||
import './App.css'; | ||
// import Tilt from 'react-tilt' | ||
import Tilt from '../../dist/tilt'; | ||
import Tilt from 'react-tilt'; | ||
class App extends Component { | ||
onMouseLeave(e) { | ||
console.log('clientY:', e.nativeEvent.clientY); | ||
} | ||
render() { | ||
return ( | ||
<div className="App"> | ||
<Tilt className="Tilt" style={{ height: 250, width: 250 }} > | ||
<Tilt className="Tilt" style={{ height: 250, width: 250 }} onMouseLeave={this.onMouseLeave}> | ||
<div className="Tilt-inner"> | ||
@@ -12,0 +14,0 @@ 👽 |
{ | ||
"name": "react-tilt", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Tilt for react.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/tilt.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1834744
18
379
57
0