thomasboyt / react-pikaday

A React component wrapper around Pikaday
111 stars 31 forks source link

Update syntax to ES6 #28

Open juhojo opened 6 years ago

juhojo commented 6 years ago

Notes: Tests ran without errors, chai version updated.

In the upcoming React version (16) React.createClass becomes deprecated. Alternative would be that the package imported the create-react-class package, but it is not mentioned how long this package will be a reasonable solution.

Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

juhojo commented 6 years ago

I am unaware why the Travis CI build failed however.

image