Created
February 22, 2021 15:35
-
-
Save eamonnboyle/4bcc682b27367f0d1f64c9f17a65b245 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Specify Component Props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface LocationSearchProps { | |
onSearch: (search: string) => void; | |
} | |
export const LocationSearch: FC<LocationSearchProps> = (props) => { | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment