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 server #27

Merged
merged 3 commits into from
Oct 16, 2018
Merged

React server #27

merged 3 commits into from
Oct 16, 2018

Conversation

FarahZaqout
Copy link
Collaborator

@FarahZaqout FarahZaqout commented Oct 15, 2018

create react server with create-react-app

  • Eslint is disabled in app.jsx to keep it as a class that contains everything else (so we don't have to rewrite it later).

#26

ishak52
ishak52 previously approved these changes Oct 15, 2018
ashatat
ashatat previously approved these changes Oct 15, 2018
@amusameh
Copy link
Collaborator

@FarahZaqout
Why using .jsx while create-react-app uses .js??

The distinction between .js and .jsx files was useful before Babel, but it’s not that useful anymore.
Dan Abramov

you can read his comment is these issues
facebook/create-react-app#87 (comment)
airbnb/javascript#985

Copy link
Collaborator

@RamyAlshurafa RamyAlshurafa left a comment

Choose a reason for hiding this comment

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

I have some comments
I'm not sure if it's essential or not

work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I Think we should change this title into a real one

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah.

<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<!--
Copy link
Collaborator

Choose a reason for hiding this comment

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

No needs for these commented lines.
what do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed.

import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to make it off-line app?
if not so I think no needs for serviceWorker

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think it's good to try and make it a progressive app.

@FarahZaqout
Copy link
Collaborator Author

@FarahZaqout
Why using .jsx while create-react-app uses .js??

The distinction between .js and .jsx files was useful before Babel, but it’s not that useful anymore.
Dan Abramov

you can read his comment is these issues
facebook/create-react-app#87 (comment)
airbnb/javascript#985

Yeah, a lot of people are pushing towards this. However, for some reason airbnb refuses to buckle.
I have read the issues you linked before and the ones advocating for .js sound more reasonable. However, I would be lying to say that I know for sure what advantages and disadvantages that entails.

@FarahZaqout
Copy link
Collaborator Author

Maybe I should just disable the rule in eslint?

amusameh
amusameh previously approved these changes Oct 16, 2018
@FarahZaqout FarahZaqout merged commit bd9e28c into master Oct 16, 2018
@FarahZaqout FarahZaqout deleted the react-server branch October 16, 2018 13:57
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.

5 participants