Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 719 Bytes

State and events, an exercise.md

File metadata and controls

14 lines (11 loc) · 719 Bytes
repository branch
exercise

Consider this application and it's exercise branch.

  • Replace the hard-coded state with data from the API and include the correct type for the array of quotes.
    • The form for changing the count and submitting the form is in the <Quotes> component.
    • You'll need to pass in the count as well as event handlers for onChange and onSubmit.
  • Add the correct typing for the children in the <Quotes /> component.
  • Add the correct typing for the onSubmit event handler.

You can see the solution here.