Created
June 8, 2019 17:14
-
-
Save koss-lebedev/9799a5df0b01a0a889b2140fc0ee7514 to your computer and use it in GitHub Desktop.
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 * as React from "react" | |
import { Quote } from "./canvas" | |
export function KanyeQuote() { | |
const [quote, setQuote] = React.useState("") | |
React.useEffect(() => { | |
fetch("https://api.kanye.rest/").then(response => { | |
response.json().then(json => { | |
setQuote(json.quote) | |
}) | |
}) | |
}, []) | |
return <Quote text={quote} /> | |
} |
mu3
commented
Aug 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment