-
Notifications
You must be signed in to change notification settings - Fork 145
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
Jonas Happy Thought App #92
base: main
Are you sure you want to change the base?
Conversation
…re I collecting all the code from the diffrent components.
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.
Good job with this week’s project Jonas! You managed to follow the design and successfully fetch from an API in React 🥳 Let’s have a closer look at your code.
You’ve split your project up into components - great job! A next step would be to break it up even further by for example abstracting the API logic into its own file.
Nice idea to break out the postOptions! Why not do it for the ThoughtLikes as well? 😏
Some notes about clean code:
- Be consistent with single or double quotes
- No need to import React
- Don’t start with an empty line (but end with one, in every JS or JSX file)
- Remove unneccessary empty lines in App.jsx
- JavaScript objects should be named in camelCase and not PascalCase (-> postOptions)
All in all - be proud and keep going ⭐️
border-radius: 4px; | ||
background-color: #fff; | ||
font-size: 16px; | ||
resize: none; |
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.
⭐️
https://jonas-happythought.netlify.app/