Skip to content

Instantly share code, notes, and snippets.

View thebinaryfelix's full-sized avatar
⚛️
Reacting

Mateus Felix thebinaryfelix

⚛️
Reacting
View GitHub Profile
@thebinaryfelix
thebinaryfelix / ProviderComposer.tsx
Last active May 30, 2024 13:34
Component for composing providers in React v18 with Typescript
export interface IProviderComposerProps extends React.PropsWithChildren {
/**
* Providers list
* */
with: React.FC<React.PropsWithChildren>[]
}
const ComposerFragment: React.FC<React.PropsWithChildren> = ({
children,
}): JSX.Element => <>{children}</>