React-big-calendar: Use 'create-react-class' package instead of React.createClass

Created on 13 Apr 2017  路  2Comments  路  Source: jquense/react-big-calendar

React.createClass has been deprecated and extracted to it's own package since React v15.5.0.

The following warning is displayed if that version of React is used:
Warning: Calendar: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.

See Migrating from React.createClass to fix this.

This could be a temporary fix, but I think moving to ES6 classes is more appropriate :-)

Most helpful comment

PR's welcome!

All 2 comments

PR's welcome!

Will try to look at it this evening :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolasriccardi picture nicolasriccardi  路  3Comments

dogC76 picture dogC76  路  4Comments

gsavvid picture gsavvid  路  3Comments

Hector26 picture Hector26  路  3Comments

manutenfruits picture manutenfruits  路  3Comments