Sort Function #50
-
Hey Leute ich hab meine Sort() implementiert mit einem UseEffect, und habe das State Up Lifting auch als Methode genutzt. Ich weiß leider nicht wo ich genau falsch gegangen bin, weil die console mir auch unschlüssig bleibt. Hier der Link zu meiner Branch |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hallo Mo, schau doch bitte mal hier: How-to-ask-good-questions und versuche deine Frage exakter zu formulieren. Das macht es allen einfacher. |
Beta Was this translation helpful? Give feedback.
-
Was @actyvystom sagt, und zudem noch:
... auf den ersten Blick könntest du hier auch Edit: Oh, und du solltest noch |
Beta Was this translation helpful? Give feedback.
Was @actyvystom sagt, und zudem noch:
... auf den ersten Blick könntest du hier auch
const htl = products.price((a, b) => b - a)
schreiben.Edit: Oh, und du solltest noch
products
undsortProducts
als dependency für deinen useEffect hinzufügen, sonst könnte es evtl. ein bisschen arg rattern.