Last active
February 22, 2021 15:37
-
-
Save eamonnboyle/8dd85cb222b20e41c32c01d60295b019 to your computer and use it in GitHub Desktop.
Weather App Tutorial - Destructuring 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
export const LocationSearch: FC<LocationSearchProps> = (props) => {} | |
// Simplify using destructuring | |
export const LocationSearch: FC<LocationSearchProps> = ({onSearch}) => {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment