Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.createClass deprecation warning on React version 15.5.4 - will be removed in React 16 #8

Open
jayiconcmo opened this issue May 24, 2017 · 3 comments

Comments

@jayiconcmo
Copy link

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

in index.js 39

Thank you

@MoOx
Copy link

MoOx commented Sep 26, 2017

React.DOM.script is breaking with react 16 atm. This module is unusable with react 16.

@HeyParkerJ
Copy link

If you need a quick fix for React 16, it's an easy change - just pull this script into a local util, npm install react-dom-factories (then add the import to the top of the util), change line 6 from script = React.DOM.script; to script = myReactGoogleAnalyticsReplacementUtil.script;, and then import it in place of this module where needed.

@MoOx
Copy link

MoOx commented Oct 9, 2017

Or use react-ga ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants