Skip to content

Commit

Permalink
Fixed deprecated React.createClass() to a new module createReactClass…
Browse files Browse the repository at this point in the history
…() (#270)

* Fixed deprecated React.createClass() to a new package createReactClass()
  • Loading branch information
rj-david authored and charpeni committed Oct 24, 2017
1 parent 0084081 commit 3ad1e43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"homepage": "https://github.com/inProgress-team/react-native-meteor#readme",
"dependencies": {
"base-64": "^0.1.0",
"create-react-class": "^15.6.0",
"crypto-js": "^3.1.6",
"ejson": "^2.1.2",
"minimongo-cache": "0.0.48",
Expand Down
3 changes: 2 additions & 1 deletion src/components/createContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/

import React from 'react';
import createReactClass from 'create-react-class';

import Mixin from './Mixin';

Expand All @@ -18,7 +19,7 @@ export default function createContainer(options = {}, Component) {
getMeteorData
} = expandedOptions;

return React.createClass({
return createReactClass({
displayName: 'MeteorDataContainer',
mixins: [Mixin],
getMeteorData() {
Expand Down

0 comments on commit 3ad1e43

Please sign in to comment.