Skip to content

Commit 1e749f2

Browse files
committed
Handle React.createClass deprecation
1 parent 260c032 commit 1e749f2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"webpack": "^1.11.0"
9090
},
9191
"dependencies": {
92+
"create-react-class": "^15.5.1",
9293
"hoist-non-react-statics": "^1.0.3",
9394
"invariant": "^2.0.0",
9495
"lodash": "^4.2.0",

test/components/connect.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import expect from 'expect'
2-
import React, { createClass, Children, Component } from 'react'
2+
import React, { Children, Component } from 'react'
3+
import createClass from 'create-react-class'
34
import PropTypes from 'prop-types'
45
import ReactDOM from 'react-dom'
56
import TestUtils from 'react-addons-test-utils'

0 commit comments

Comments
 (0)