Giter Site home page Giter Site logo

commit-kyle / specialtea Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.55 MB

React app which allows users to order their special tea.

Home Page: https://commit-kyle.github.io/specialtea/

HTML 11.21% JavaScript 59.02% CSS 29.77%
usestate usecontext useref reactportals react-forwardref useeffect hooks react

specialtea's Introduction

Specialtea

Table of contents

General info

This project is a tea ordering app.

Static data for tea varieties are provided and rendered on the main page. This allows users to add their special tea to their cart. Within which they have the ability to adjust the quantity of each chosen product and, in turn, this would manipulate the cart overall. It adjusts the price accordingly and displays the number of items specific to each tea product respectively. The logic and overall ability for users to order something has not been configured, though.

We make use of basic state management through "useState". This is implemented when I make use of a modal which gets rendered upon opening the cart. Modal elements are rendered semantically too, by use of React Portals.

Additionally, we implement context for more complex state management. Tea items, price, quantity, adding and removing logic are all managed by this context and therefore we make it available to all components which require this data for the overall app to work as intended.

This app fully implements function components.

Moreover, the core purpose of project "SpecialTea" is to showcase my implementation of "React.createContext" to share complex state management logic. "React.createPortal", "useRef", "React.forwardRef", "useEffect" and "useState" functionalities are also made use of throughout the creation of this project.

Technologies

Latin Blog is created using:

  • react version: 17.0.2

Live website

The link to a live demonstration of how this app works can be found here; SpecialTea

I hope you've enjoyed it!

specialtea's People

Contributors

commit-kyle 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.