Skip to content

Instantly share code, notes, and snippets.

View mrkdavi's full-sized avatar
👀

Marcus Queiros mrkdavi

👀
View GitHub Profile
@Luisgustavom1
Luisgustavom1 / ComposeProviders.tsx
Last active December 27, 2022 19:10
Compose React Providers to avoid too much chaining
import React from 'react'
interface IComposeProvidersProps {
with: Array<React.ElementType>
children: React.ReactNode
}
export const ComposeProviders = ({
with: Providers,
children,