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

Upgrade react-rails to v2.x #2465

Closed
wants to merge 2 commits into from
Closed

Upgrade react-rails to v2.x #2465

wants to merge 2 commits into from

Conversation

ykzts
Copy link
Sponsor Member

@ykzts ykzts commented Apr 26, 2017

Sorry! There are many file changes. But, I just added import React from 'react';.

Also, never use jQuery in React Components. I deleted //= require jquery.

with jQuery

$ du -sk public/assets/application-*.js*
2892	public/assets/application-acd2b42d93ab83e0fae21a51767e530d17ed4e0c2d9d0c3bd839cae162d48a67.js
496	public/assets/application-acd2b42d93ab83e0fae21a51767e530d17ed4e0c2d9d0c3bd839cae162d48a67.js.gz

without jQuery

$ du -sk public/assets/application-*.js*
2776	public/assets/application-3a7e5f14a72c345ca3c138fefd79c813612c94afb5140d753428d0bb32225968.js
456	public/assets/application-3a7e5f14a72c345ca3c138fefd79c813612c94afb5140d753428d0bb32225968.js.gz

@tcitworld
Copy link
Contributor

Pretty sure jquery had a use.

@ykzts
Copy link
Sponsor Member Author

ykzts commented Apr 26, 2017

jQuery is breaks DOM node created by React.

@Wonderfall
Copy link
Contributor

Without jQuery I get these messages : $ is not defined.

@ykzts
Copy link
Sponsor Member Author

ykzts commented Apr 29, 2017

@Wonderfall Oh, I'm sorry. I overlooked it. I think that it is corrected by a373e0f.

@ykzts
Copy link
Sponsor Member Author

ykzts commented Apr 29, 2017

Because it conflicts with #2617 it closes.

@ykzts ykzts closed this Apr 29, 2017
@ykzts ykzts deleted the react-rails-v2 branch April 29, 2017 13:10
ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this pull request Nov 15, 2023
Fix relative / VS absolute style imports, and fix whitespace discrepancies
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.

None yet

3 participants