Skip to content

Instantly share code, notes, and snippets.

View phobon's full-sized avatar
🙃

Ben McCormick phobon

🙃
View GitHub Profile
@phobon
phobon / consuming.jsx
Created September 29, 2020 05:53
Consuming data
function fetchLedBrands = async () => {
// This can be sourced from anything, an api endpoint etc.
//[
// { id: 1, label: "a" },
// { id: 2, label: "b" },
// { id: 3, label: "c" },
// { id: 4, label: "d" },
// { id: 5, label: "e" },
//];
@phobon
phobon / streamline icon template
Created April 29, 2019 00:11
Custom template to use for streamline icons
// default template
module.exports = ({
name,
viewBox,
pathData
}) => `import React from 'react'
const ${name}Icon = ({
size,
color,