Coder Social home page Coder Social logo

karinnordkvist / technigo-10-24-happythoughts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technigo/project-happy-thoughts

0.0 0.0 0.0 618 KB

Home Page: https://happihappiness.netlify.app/

HTML 3.02% JavaScript 65.15% SCSS 31.83%
api postrequests react

technigo-10-24-happythoughts's Introduction

Happy Thoughts

This week's task was to work with useEffect to call an API, then use GET- and POST-requests to display and add new thoughts/likes to a list of happy thoughts. Stretch goals were to count amount of likes and message length and add/remove elements based on it.

The problem

For this task I decided to try and use my sketchbook to plan my components and states. This was a bit harder than I thought, but I do think it helped me getting started. Thinking about my project afterwards though, made me realize I will continue trying to work like this as I get more knowledge of components and structure.

Getting all functions in place, along with the components needed was kind of easy, and maybe that could explain why I had to spend quite a lot of time later on moving stuff around in my components. My biggest challenge this week was to understand the React waterfall-concept, and where to put different things to be able to access them from all components. Because of these structural problems and the difficulty I had to grasp this, I spent a good amount of time to try to display when a thought was liked.

This project has been very helpful for me to understand the concept of React components, usage of states and sending data through functions and props.

If I'd had more time I would try to work more with animations and loaders, to make the site more visually dynamic, and to learn how to work with for example Lottie animations. I would also give the structure another go, just to make the app.js-component hold all the data and pass it down the waterfall.

View it live

Live demo: https://happihappiness.netlify.app/

technigo-10-24-happythoughts's People

Contributors

dependabot[bot] avatar emolsz avatar idlefingers avatar jenniedalgren avatar karinnordkvist avatar puj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.