Skip to content

Instantly share code, notes, and snippets.

View IvanRadchenko's full-sized avatar

DanseMacabre IvanRadchenko

  • Berlin
View GitHub Profile
@IvanRadchenko
IvanRadchenko / _svgbutton.css
Created October 2, 2016 10:11
Button with SVG icons
.download:before {
background: url("images/download-arrow.svg") no-repeat scroll center center / 100% auto rgba(0, 0, 0, 0);
content: "";
display: inline-block;
color: #fff;
height: 30px;
margin-right: 13px;
position: relative;
top: -2px;
vertical-align: middle;
import {
Dispatch,
SetStateAction,
useCallback,
useEffect,
useState,
} from 'react';
const isFunction = (fn: unknown): fn is Function => (typeof fn === 'function');