Skip to content

Instantly share code, notes, and snippets.


Marnix Janssen mjanssen

View GitHub Profile
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
mjanssen / react-class-params.js
Last active Mar 31, 2020
Get data based on url params
View react-class-params.js
import React, { Component } from 'react';
import dlv from 'dlv';
function getUrlQueryData() {
const queryData =^\?/, '').split('&');
const d = {};
if (queryData) {
queryData.forEach(k => {
const [key, value] = k.split('=');
d[key] = value;
View rollup.config.js
import babel from "rollup-plugin-babel";
import multiInput from "rollup-plugin-multi-input";
const extensions = [".ts", ".tsx"];
export default {
input: ["./src/components/**/*.tsx"],
external: ["react"],
mjanssen / html.js
Created Mar 28, 2020
Output of rollup compiling
View html.js
'use strict';
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
function Html(_ref) {
var className = _ref.className,
children = _ref.children,
_ref$comp = _ref.comp,