docs: Shorten code sample

This commit is contained in:
Marc Rousavy 2021-07-06 14:56:44 +02:00 committed by GitHub
parent 1646bb56f4
commit 94914907ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,11 +25,7 @@ function App() {
const frameProcessor = useFrameProcessor((frame) => {
'worklet'
const isHotdog = detectIsHotdog(frame)
if (isHotdog) {
console.log("Hotdog!")
} else {
console.log("Not Hotdog!")
}
console.log(isHotdog ? "Hotdog!" : "Not Hotdog.")
}, [])
return (