Skip to content

Instantly share code, notes, and snippets.

View sciotta's full-sized avatar
🎯
Focusing (also in Gitlab)

Thiago Sciotta sciotta

🎯
Focusing (also in Gitlab)
View GitHub Profile
@sciotta
sciotta / ComposeProviders.tsx
Last active May 10, 2023 05:07 — forked from Luisgustavom1/ComposeProviders.tsx
Compose React Providers to avoid too much chaining
import React from 'react'
interface IProviderProps {
component: React.ElementType,
props?: Record<string, any>,
}
interface IComposeProvidersProps {
with: Array<IProviderProps>,
children: React.ReactNode,
<div ng-repeat="m in milestone_choices" class="row-fluid">
<label><input type="radio" name="meaningless" ng-value="$index" ng-model="milestone_data.index" />
&nbsp;<span ng-bind="m.title"></span></label>
</div>