Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 302 Bytes

instructions.md

File metadata and controls

14 lines (10 loc) · 302 Bytes

Fetch country based on user's choice

In /components/Countries.jsx, fetch the country's data based on the user's input.

Goal

  • The DOM should update once in the beginning
  • And whenever the user changes country in the dropdown

Syntax of useEffect

useEffect(() => {

}, [dependency])