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

technigo-w7-project-happy-thoughts #75

Closed
wants to merge 19 commits into from
Closed

Conversation

schouenkes
Copy link

const [loading, setLoading] = useState(true);
const [totalNumberOfLikes, setTotalNumberOfLikes] = useState(() => {
const storedLikes = localStorage.getItem("numberOfLikes");
return storedLikes ? JSON.parse(storedLikes) : "";

Choose a reason for hiding this comment

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

maybe this needs to be a number 0 instead of a string? each time I press it the 1 goes on the end so it says "You have liked 1 happy thoughts", "You have liked 11 happy thoughts", "You have liked 111 happy thoughts.° instead of saying 1, 2, 3 and so on

{loading ? (
<>
<i className="fa-solid fa-heart fa-beat fa-5x"></i>
<p>Loading</p>

Choose a reason for hiding this comment

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

nice touch with the heart when loading!

Copy link
Contributor

@dzc1 dzc1 left a comment

Choose a reason for hiding this comment

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

Hey Maja amazing work on this project!!

Managing perfect the useEffect hook with the level of prop destructuring!! Honestly it's looking flawlessly!!!

Keep up the great work

@HIPPIEKICK HIPPIEKICK closed this Oct 22, 2024
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.

4 participants