Last active
May 11, 2021 13:13
-
-
Save sunnyone/7e33709eec5eb3d1f88fc8d227a6afe7 to your computer and use it in GitHub Desktop.
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 HogeListItemProps { | |
title: string; | |
} | |
const HogeListItem: React.VFC<HogeListItemProps> = ({title}) => | |
<li>{title}</li>; | |
interface HogeListProps { | |
children: ReactNode; | |
} | |
export const HogeList: React.VFC<HogeListProps> & {Item: typeof HogeListItem} = ({children}) => | |
<ul>{children}</ul>; | |
HogeList.Item = HogeListItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment