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

Jonas Happy Thought App #92

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Jonas Happy Thought App #92

wants to merge 7 commits into from

Conversation

Jonash189
Copy link

Copy link
Contributor

@HIPPIEKICK HIPPIEKICK left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

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

⭐️

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.

2 participants