Skip to content

Removed createClass as its deprecated #699

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

Closed
wants to merge 1 commit into from

Conversation

AG-Systems
Copy link
Contributor

@@ -395,7 +388,7 @@ rails g react:component Post title:string published:bool published_by:instanceOf
would generate:

```js
var Post = React.createClass({
class Post extends React.Component{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change the documentation for ComponentGenerator, should we also update the code to match the new documentation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its a great idea

@BookOfGreg
Copy link
Member

Thank you for your contribution!
I've merged your commits into #798 so it can all go as one cohesive patch.

@BookOfGreg BookOfGreg closed this Oct 2, 2017
@AG-Systems AG-Systems deleted the patch-1 branch October 2, 2017 22:12
@AG-Systems AG-Systems restored the patch-1 branch October 2, 2017 22:12
@AG-Systems AG-Systems deleted the patch-1 branch October 2, 2017 22:12
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

Successfully merging this pull request may close these issues.

3 participants