small suggestion: add a default value for date
jimniels opened this issue · comments
Jim Nielsen commented
Small piece of feedback from doing the workshop.
Whenever I'm testing the "new deposit" functionality in the exercises, I'm constantly having to type in an amount, choose a date, then hit submit. Entering the date can get a bit tiresome.
Maybe you could default it to have a value, that way when you're doing the exercise and testing your code, you don't have to fumble through choosing a date in the UI each time you want to test posting the form data. Something like this here:
<input type="date" defaultValue={new Date().toISOString().slice(0, 10)} />
Jim Nielsen commented
Ha! And now in the next exercise, I see the value of keeping the date field without a value (for error handling and focus). So I guess disregard this.
Kent C. Dodds commented
Thanks anyway Jim!