Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Friday 6:30-9:00PM | Instructor: Jonathan Chery, TA: Catherine Jimenez | Name: Animesh Deb #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AnimeshDeb
Copy link

What section are you in:

  • Tuesday
  • Wednesday
  • Thursday
  • Friday 3pm
  • Friday 6pm
    Friday: 6:30PM
    Is the solution complete?

Yes

Did you run into any problems?

I didn't understand originally how to use states to solve the lab. The original idea was to have a function that gets executed when the toggle button is clicked, and the function would increase the variable li by 1. I was going for this method because I noticed that when you increase the value of li, it would correspond to a change in which buttons have the blue borders. However, after altering the variable through a function in my code, nothing happened when I clicked toggle. This meant that I had to look up online how to implement states in react and use them in place of modifying variable.

Did you collaborate with others on this solution?

No.

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

Successfully merging this pull request may close these issues.

1 participant