Skip to content

Fix React 15.5 deprecation warnings #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion modules/PointTarget.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'
import React from 'react'
import PropTypes from 'prop-types'

const touchX = (event) =>
event.touches[0].clientX
Expand Down
2 changes: 1 addition & 1 deletion modules/__tests__/PointTarget-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import expect from 'expect'
import React from 'react'
import { render } from 'react-dom'
import { Simulate } from 'react-addons-test-utils'
import { Simulate } from 'react-dom/test-utils'
import PointTarget from '../PointTarget'

const touch = (clientX, clientY) => ({
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"karma-webpack": "^2.0.1",
"mocha": "^3.0.0",
"pretty-bytes": "^4.0.2",
"prop-types": "^15.5.9",
"react": "^15.3.0",
"react-addons-test-utils": "^15.3.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably remove this line too, right?

"react-dom": "^15.3.0",
Expand Down