Code Monkey home page Code Monkey logo

passing-thoughts's Introduction

Passing Thoughts

Project #47 from Codecademy's Full Stack Engineer Career Path

By Anton Vlasenko (AntonV0)

Project Outline

This ReactJS web app is a place to store your passing thoughts. Your thought disappears 15 seconds after it's added, and it can also be deleted before the timer expires.

What I Learned

  • Function components with syntax similar to stateless components
  • Using hooks instead of class components
  • The useState hook to allow functional components to have state
  • The useEffect hook to allow functional components to have lifecycle methods within a single API
  • Using event.preventDefault() to stop the browser from refreshing the page
  • The setTimeout() method that executes its asynchronous function after a set time
  • Returning cleanup functions (to clear effects after they are no longer needed) to prevent unwanted behaviours such as memory leaks

Please note that in each project, the first commit is always the starter code provided by Codecademy.

passing-thoughts's People

Contributors

antonv0 avatar

Stargazers

 avatar

Watchers

 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.