Created
May 30, 2023 08:23
-
-
Save sapegin/a46ab46cdd4d6b5045027d120b9c967d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// How do you avoid name clashes between functions, variables, components, and types? | |
// OK | |
const crocodiles = getCrocodiles({ color: 'green' }) | |
// ??? | |
const isCrocodile = isCrocodile(crocodiles[0]) | |
// OK | |
const user: User = { name: 'Chuck Norris' } | |
// ??? | |
function User(props: { user: User }) => <p>{props.user.name}</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My suggestions: