This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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`) |