Start using create-react-class polyfill
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
debc124714
commit
aa98a6dfcb
3 changed files with 7 additions and 6 deletions
|
@ -1,6 +1,7 @@
|
|||
const React = require('react');
|
||||
const ReactDom = require('react-dom');
|
||||
import PropTypes from 'prop-types';
|
||||
import createReactClass from 'create-react-class';
|
||||
const Velocity = require('velocity-animate');
|
||||
|
||||
/**
|
||||
|
@ -10,7 +11,7 @@ const Velocity = require('velocity-animate');
|
|||
* from DOM order. This makes it a lot simpler and lighter: if you need fully
|
||||
* automatic positional animation, look at react-shuffle or similar libraries.
|
||||
*/
|
||||
module.exports = React.createClass({
|
||||
module.exports = createReactClass({
|
||||
displayName: 'Velociraptor',
|
||||
|
||||
propTypes: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue