Skip to content

Happy Thoughts App: A React project focused on state management, API interactions for fetching and posting data. Features include a design-aligned UI, sorted thought display by recency, like count for each thought, a form for new thoughts, and a like functionality.

Notifications You must be signed in to change notification settings

Maria-Manuela/project-happy-thoughts-vite

 
 

Repository files navigation

Getting Started with the Project

Planning:

I began by outlining the necessary components. The first step was fetching data from the API, followed by implementing the form for creating new thoughts. Next, I integrated the like button functionality along with displaying the number of likes. Finally, I focused on styling the components for a cohesive user interface.

The Problem

  1. Problem: New thoughts not refreshing without page reload.

Solution: Utilized useState and useEffect hooks to fetch and update thoughts from the API dynamically.

  1. Problem: Styling issues causing misalignment of elements.

Solution: Applied CSS classes and flexbox properties to align elements properly.

  1. Problem:
    I wanted to include a time stamp for each message, but that would disrupt the styling alignment. Therefore, the future was put on hold. I still need to work on passing data from child components via props and managing class names for styling.

View it live

👉https://maria-happy-thoughts.netlify.app/

About

Happy Thoughts App: A React project focused on state management, API interactions for fetching and posting data. Features include a design-aligned UI, sorted thought display by recency, like count for each thought, a form for new thoughts, and a like functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.5%
  • CSS 28.1%
  • HTML 3.4%