Skip to content

Create Shopping Cart #20

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yuriyivanenko
Copy link

App is able to add items to a cart as well as filter down using categories. Dark/Light mode also work.


const updateCart = (e) => {
const action = e.target.innerHTML
console.log('Func ran', e.target.innerHTML)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log('Func ran', e.target.innerHTML)

const [cart, setCart] = useState(items)

const updateCart = (e) => {
const action = e.target.innerHTML

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const action = e.target.innerHTML
const buttonText = e.target.innerHTML

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants