Giter VIP home page Giter VIP logo

react-to-do's Introduction

This is a repository for a React Todo application using only functional components and Hooks to manage state.

To run the application, cd to the project directory and run the following commands:

$ npm install

$ npm start or yarn start

Built With

React - JavaScript framework.

I wanted display my knowledge of hooks to show that we're able to use state inside functional components to prevent re-calculating it every time the component updates. It provides improved code reuse, composition, and better defaults. Rather than use complicated multi-line if-else statements, I felt my code could be simplified by using more concise methods by using ternary expressions, I feel like it made the conditional rendering much easier than with a tradtional if-else statements. Within this app you should be able to add tasks, delete tasks and remove tasks. When clicking the blue button it indicates completion of the task. The red button removes the tasks. When reloading the page the tasks appear back in place. The text input at the bottom of the page enables a task to be written in but it won't have a hard coded value within the state of the application. I didn't do much styling in the app with specifics, although I should have.

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

yarn test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

yarn build

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

react-to-do's People

Contributors

upperlefty avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

react-to-do's Issues

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.