Skip to content

Instantly share code, notes, and snippets.

View dsacramone's full-sized avatar

Dean S. dsacramone

  • Venice, California
View GitHub Profile
/*
Our HTML
<div id="results"></div><br />
<input id="input" type='text' />
*/
/*
Our API call
*/
const fetchQuery = search => {
return fetch(`https://www.reddit.com/r/${search}/.json?limit=10&show=all`)
@dsacramone
dsacramone / rollup config
Created June 7, 2020 04:54
my current rollup config
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import resolve from "rollup-plugin-node-resolve";
import typescript from "rollup-plugin-typescript2";
import sass from "rollup-plugin-sass";
import commonjs from "rollup-plugin-commonjs";
import copy from "rollup-plugin-copy";
import packageJson from "./package.json";
export default {