React-google-maps: Prep for React v16 and removal for deprecation warnings (PropTypes & createClass)

Created on 10 Apr 2017  路  6Comments  路  Source: tomchentw/react-google-maps

Are there any plans to prepare for React v16 as per this post: React v15.5.0 ..?

It means replacing all React.PropTypes and using the prop-types package, and repalcing all React.createClass using the create-react-class package.

Doing this will also remove the deprecation warnings for anyone using React v15.5.0 which show in the console in development env.

Most helpful comment

Released 7.0.0

All 6 comments

and using the prop-types package

Maybe Flow?

Sure... So long as React.PropTypes and React.createClass are removed.

It is quite annoying to have these red warnings in my console all the time while in dev:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

Warning: GoogleMap: 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.

Other than this issue, this package is really good!

Will do.

Released 7.0.0

@tomchentw Could you (or someone) please publish 7.0 to the npm registry? (or is it not ready yet?)

Published 7.0.0 to npm as latest.

Was this page helpful?
0 / 5 - 0 ratings