Skip to content

Instantly share code, notes, and snippets.

Avatar

Dean S. dsacramone

  • Venice, California
View GitHub Profile
@dsacramone
dsacramone / rollup config
Created Jun 7, 2020
my current rollup config
View 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 {
View debounceTime-api-request
/*
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`)