Code Monkey home page Code Monkey logo

food_order's Introduction

주요 기능

  • 중앙에 표시된 메뉴들의 수량을 선택해 주문하면 장바구니에 주문 내역을 담아 주문 금액을 자동으로 계산해줌
  • 메뉴의 수량을 임의로 지정하여 주문할 수 있으며 장바구니에서 변경해도 실시간으로 변경 수량과 금액이 보여짐.

프로젝트 설명

  • React의 중요한 특징인 hooks를 사용해 보고, React 프로젝트의 Life cycle을 이해하는 것을 중점으로 실습함.
  • 또한 useState, useEffect, useContext, useReducer 같은 자주 사용되는 hooks의 적용을 통해 State나 Context의 개념을 이해하고 실제 구현하는데 중점을 둠.
  • 메뉴 수량과 가격은 items 객체 배열로 totalAmount는 number로 default state를 설정함.
  • Reducer를 구현하기 위해 크게 ADD, REMOVE 라는 action을 만들어 각각 state를 변경하는 함수를 구현함

주요 사용 기술 분석

React Hooks

food_order's People

Contributors

serzhul 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.