Exercise

1. Update CatForm component

  • Add an radio input to handle the gender of cat which the value is Male with the name is gender
  • Add an radio input to handle the gender of cat which the value is Female with the name is gender
  • Add an text input to handle the avatar of cat with the name is avatar

2. Update the CatItem component

  • Render the avatar from the image prop
  • Have an

    tag that render the gender of cat

Extra

1. Update the handleCatSubmit function so that we can create Cat with two new props gender and avatar