Skip to content

Instantly share code, notes, and snippets.

View gazdagergo's full-sized avatar

Gergely Gazda gazdagergo

  • Budapest, Hungary
View GitHub Profile
@gazdagergo
gazdagergo / reactChildrenToFlatArray.js
Last active December 12, 2018 06:12
React children to flat array
View reactChildrenToFlatArray.js
import { Children } from 'react';
const getChildrenType = node => {
if (node === null) return 'null';
if (Array.isArray(node)) return 'array';
if (typeof node === 'object') return 'object';
return 'string';
}
const getElemType = elem => {
@gazdagergo
gazdagergo / SassMeister-input.scss
Created January 6, 2015 12:32
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
/*
Basic styles for FoundationPress demo site
*/