Skip to content

Commit

Permalink
Merge pull request #226 from Zemnmez/Zemnmez-patch-9
Browse files Browse the repository at this point in the history
make react children explicit
  • Loading branch information
Zemnmez authored May 19, 2022
2 parents 0ec0561 + e075040 commit 94dfee7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ts/react/article/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ export const RenderModeContext = React.createContext<RenderMode>(

export interface Article {
short?: boolean;
children?: React.ReactNode;
}

export const Article: React.FC<{
short?: boolean;
children?: React.ReactNode;
}> = ({ short, children }) => {
return (
<RenderModeContext.Provider
Expand Down

0 comments on commit 94dfee7

Please sign in to comment.