GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 17 von 18 · Medien

RD-1.Add an input field

Kostas Diakogiannis

RD-1.Add an input field

RD-1. Add input field for deposit and withdraw

Let's try to have an exercise, instead of just adding or taking 50 dollars as a fixed value, try to take this number from an input field. 

So create a new component, that renders only one input field. This input should be of type number, and it's value, should be stored in centralized state anytime, the value changes. Then when we clicked the corresponding buttons, the function should trigger the dispatch action by the value this field has at the time. 

After clicking, reset the field's value back to 0.

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck