Skip to content

lisahammarstrand/project-happy-thoughts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Happy Thoughts

This is a project within the Technigo frontend boot camp.

The objective was to practice React state by fetching and posting data to an API; sending, reading and liking messages.

The problem

I started out by sketching up the components needed and what their role should be. I decided not to split the project up in many components, in order to understand the flow of each function. I used React State and useEffect hooks, and window.location.reload to retreive a fresh set of all new messages. A ternary operator was used to control the length of the text in the form textarea.

If I had more time I would work more on the styling, and also implement an error message when form validation requirements are not met.

View it live

https://happy-thoughts-lisah.netlify.com/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.7%
  • CSS 30.0%
  • HTML 15.3%