Instantly share code, notes, and snippets.
View thebinaryfelix's full-sized avatar
⚛️
Reacting
Mateus Felix thebinaryfelix
⚛️
Reacting
Developer at @grupoboticario
-
Grupo Boticario
- Brasilia, Brazil
-
04:23
(UTC -03:00) - https://thebinaryfelix.vercel.app
- in/mateusfelix
thebinaryfelix
/ ProviderComposer.tsx
Last active
August 23, 2024 14:40
Component for composing providers in React v18 with Typescript
This file contains hidden or 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
export interface IProviderComposerProps extends React.PropsWithChildren {
/**
* Providers list
* */
with: React.FC<React.PropsWithChildren>[]
}
const ComposerFragment: React.FC<React.PropsWithChildren> = ({
children,
}): JSX.Element => <>{children}</>