Git Product home page Git Product logo

project-happy-thoughts's Introduction

Project 11, Happy-Thought form, build during Technigo Bootcamp fall 2019!

1. What is this?

In this week's project, we used React to build a form that is fetching and posting data to an API. Like a version of twitter with only "happy" thoughts.

2. What did I do?

First I decided how I should structure the form, based on the design we were given. I decided how many components I should use and how to structure them. I wanted one that only dealt with the POST method of the thoughts, where I would submit my own thoughts, and then one component with the GET method when calling the API to fetch all the posts that others submitted and also where I would build the function for posting my likes.

I used the useEffect hook to perform the different actions when the components I created mounted, unmounted, and when they changed the state, and useState for setting the new state depending on the new value.

If I would have more time, I would have changed the text in the submit form, to "reset", at the same moment hitting the submit button.

3. Where can you see it in action?

This is where you can find my deployed project: https://myhappythoughts.netlify.com/

project-happy-thoughts's People

Contributors

angelicabrodin avatar idlefingers avatar jenniedalgren avatar

Watchers

James Cloos 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.