Skip to content

Instantly share code, notes, and snippets.

View nabeel-shakeel's full-sized avatar
:electron:
Focusing and Learning

Nabeel Shakeel nabeel-shakeel

:electron:
Focusing and Learning
View GitHub Profile
@nabeel-shakeel
nabeel-shakeel / ProviderComposer.tsx
Created December 31, 2022 12:58 — forked from thebinaryfelix/ProviderComposer.tsx
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}</>