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 August 23, 2024 14:40
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}</>