-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/filter #1
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
base: main
Are you sure you want to change the base?
Conversation
Staicy-S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
- Styling sieht gut aus
-
- Für das Button highlighting brauchst du eigentlich einen state 🤭 da musst du nochmal ran
|
sehr gute Lösung - prima |
Staicy-S
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- die buttons solltest du noch nicht in einer externen componente einbauen, da ihr noch kein state uplifting gelernt habt und du wahrscheinlich da nicht weiter kommen wirst 🙈
src/components/ButtonBar.jsx
Outdated
| import { useState } from "react"; | ||
|
|
||
| export function ButtonBar() { | ||
| let [btnHiglight, setBtnHighLight] = useState(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
die useStates definiert man immer mit const !
src/components/ButtonBar.jsx
Outdated
| } | ||
| return ( | ||
| <> | ||
| <div className={styles["btn-comtainer"]}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
container meintest du wahrscheinlich (nicht comtainer)
|
Die Ich würde dir aber für heute empfehlen, keine Komponente Wenn du dir das Thema "State-Up-Lifting" schon mal anschauen möchtest => https://react.dev/learn/sharing-state-between-components Sonst schreibe erst mal deinen Code in die |
add button list