Skip to content

Instantly share code, notes, and snippets.

View dale-french's full-sized avatar

Dale French dale-french

View GitHub Profile
@dale-french
dale-french / emoji-array.js
Last active July 26, 2023 17:27
Array of all emojis
const emojis = [
'😀',
'😃',
'😄',
'😁',
'😆',
'😅',
'🤣',
'😂',
'🙂',
@dale-french
dale-french / providerCompose.js
Created February 3, 2020 11:41
Compose multiple contexts
function ProviderComposer({ contexts, children }) {
return contexts.reduceRight(
(kids, parent) =>
React.cloneElement(parent, {
children: kids,
}),
children
);
}