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

Update package to replace deprecated React.createClass #22

Open
mullojo opened this issue Jul 1, 2020 · 0 comments
Open

Update package to replace deprecated React.createClass #22

mullojo opened this issue Jul 1, 2020 · 0 comments

Comments

@mullojo
Copy link

mullojo commented Jul 1, 2020

React.createClass was deprecated in React 15.5 and needs to be updated per the Migration Guide:

https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-reactcreateclass

We need the following update, without it, this package can't be used past React 15.4. I'm a member of the Meteor community working with others to update @SachaG's Discover Meteor Book that relies on this package. We've almost got the work done, but it would be great to get a hand on this package. We could probably fork it and upload it under a different name, but it would be great to get this fix in place!

// Before (15.4 and below)
import React from 'react';

MeteorGriddle = React.createClass({
});


// After (15.5)
import React from 'react';
var createReactClass = require('create-react-class');

MeteorGriddle = createReactClass({
});
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

1 participant