Coder Social home page Coder Social logo

op-frontend-ws's Introduction

OP-Frontend-WS

This workshop was run 02/06/24 by Christopher Bannon and Nhu Vhu through Open Project

https://openprojectberkeley.com/

Directions

  1. Clone the repository

  2. cd into OP-Frontend-WS

  3. run yarn or npm i

  4. run yarn dev or npm run dev

  5. Read through the code to understand a bit about the React project. The major changes will mostly be made in ShoppingList.jsx

Tasks

  1. First, hook up the "Add item" button so it adds a new section to the shopping list. How do we make something happen to a button when it is clicked? How do we keep track of what the user is typing --> how do we listen for this change in input?

  2. Render this list of items. Look into the map function. It might be nice to use Flexbox to arrange the information in a row, but up to you!

  3. Then, try adding another "price" field that you can also add to the shopping list item. You'll need to add a new element and make sure that information tracked by the state.

  4. Add (or toggle) the ".highlight" class to a shopping list item when it is clicked.

  5. Add a description for each item. Look in Description.jsx for more direction.

  6. For each item, add a button that will remove the item (itself) from the shopping list.

Credits

Most of this was taken from Tim's CS160 SP24 Week2 Activity and changed to fit a React context. Thank you TIm & CS160!

https://160.tja.io/sp2024/week2/

op-frontend-ws's People

Contributors

cbannon35 avatar

Watchers

 avatar

Forkers

winnieyangsp

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.