-
Notifications
You must be signed in to change notification settings - Fork 0
New review branch #3
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
base: review2
Are you sure you want to change the base?
Conversation
salierri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Első TS projektnek igazán szép kód!
simpletodo/src/App.tsx
Outdated
| </p> | ||
| </header> | ||
| <div> | ||
| <Title /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Javascriptben a 2 space az elfogadott konvenció.
Vannak általánosan elfogadott style guideok (https://github.com/airbnb/javascript), ezeket jó ismerni és ezalapján formázni a kódot, akkor egységesebb lesz a többi js fejlesztővel.
Még jobb, ha be van húzva az ESlint / TSlint, és be vannak állítva szabályok amire szól.
| document.getElementById('root') as HTMLElement | ||
| ); | ||
| root.render( | ||
| <React.StrictMode> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Van valami oka hogy nem szeretnéd a strict mode-ot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nem most, de korábban problémát okozott a plusz 2 felesleges renderelés.
README.md
Outdated
|
|
||
| - Clone the repository using the command git clone `https://github.com/kovesdieszter/SimpleToDo.git`. | ||
| - Install all necessary packages asked by your IDE. | ||
| - Run `npm start` from `simpletodo` directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fölösleges a projektnek még egy almappa, annak csak akkor van szerepe, ha több projektet is tárolsz egy repo-ban, ilyenkor mehet csak simán a gyökérbe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ez a komplikált deploy miatt most kivételesen már így maradna.
| YEAR: 'rgba(51, 170, 51, .3)' | ||
| } | ||
|
|
||
| function setBackgroundColor() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also works as a one-liner with arrow expression
salierri
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good now!
No description provided.