diff --git a/README.md b/README.md index 0a57737..0aa68d3 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,7 @@ on Twitter. ### Contributors - [Danilo Moret](https://github.com/moret) +- [Will Butler](https://github.com/willbutler) ## License diff --git a/package.json b/package.json index d286359..8dde682 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-inline-css", "description": "Inline CSS in your React components, namespaced automatically.", - "version": "2.3.0", + "version": "2.3.1", "license": "BSD-3-Clause", "repository": { "type": "git", @@ -30,6 +30,7 @@ "concurrently": "2.2.0", "json-loader": "0.5.4", "react": "15.3.0", + "react-create-class": "1.0.0", "react-dom": "15.3.0", "react-hot-loader": "1.3.0", "webpack": "1.13.1", diff --git a/src/react-inline-css.js b/src/react-inline-css.js index ff594b3..40252cf 100644 --- a/src/react-inline-css.js +++ b/src/react-inline-css.js @@ -5,11 +5,13 @@ var React = require("react"); var PropTypes = require("prop-types"); var assign = Object.assign ? Object.assign : React.__spread; var refCounter = 0; +var createReactClass = require('create-react-class'); + /** * @module InlineCss */ -var InlineCss = React.createClass({ +var InlineCss = createReactClass({ displayName: "InlineCss", propTypes: { namespace: PropTypes.string,