Created
September 15, 2022 18:11
-
-
Save newerton/f083ef8543f5e408a6b1f00f53908d80 to your computer and use it in GitHub Desktop.
Apply Interface segregation principle (ISP)
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
type Props = { | |
coverUrl: string | |
} | |
const Thumbnail = ({ coverUrl }: Props) => { | |
return <img src={coverUrl} /> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment