Code Monkey home page Code Monkey logo

reducer-shopping-list's Introduction

Reducers

Demo

https://github.com/alchemy-adv-fullstack/adv-fullstack-reducer-demo/

Getting Started

Use this repository as a template to get started.

If viewing from Canvas: https://github.com/alchemy-adv-fullstack/adv-fullstack-reducer-shopping-deliverable/

Learning Objectives

  1. Use reducers to manage state.
    1. Manage objects immutably.
    2. Manage arrays immutably.
  2. Connect React events to reducer dispatches.
  3. Test reducers.

Description

This is a retake on an old shopping list application. We need a means of:

  1. Adding shopping items to a shopping list.
  2. Editing the shopping items.
  3. Completing the shopping items.
  4. Deleting shopping items from the shopping list.

Acceptance Criteria

  1. CI must be passing (this includes linting and tests).

Rubric

Task Points
Use the useReducer hook to manage shopping list state 2
Use the useContext hook to provide global state 2
Use a switch statement inside of your reducer 2
Use the dispatch function to update state 2
Set an initial value for useReducer 2
Items can be added to shopping list through a reducer 2
Items can be edited in shopping list through a reducer 2
Items can be deleted from shopping list through a reducer 2
Unit Testing1 2
Deployed on netlify with CI passing 2

Footnotes

  1. Unit testing will include a unit test of reducers for adding to shopping list, deleting from shopping list, editing a shopping list item, and retrieving a shopping list of items โ†ฉ

reducer-shopping-list's People

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.