GoConqr has a new look! Let us know what you think.

Module 17 of 18 · Media

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.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?