react-gif-search
v0.0.7
Published
A simple bit of react to query giphy.com
Downloads
7
Maintainers
Readme
react-gif-search
🕵️♀️ A simple bit of react to query giphy.com
Usage
import React from "react";
import { render } from "react-dom";
import GifSearch from "react-gif-search";
const App = () => (
<GifSearch
// Feed a search term directly to the API
query="doggo"
// A callback for when a search is actually made
onDidSearch={term => console.log(`Searching for ${term}.`)}
/>
);
render(<App />, document.getElementById("root"));