docs: Shorten code sample
This commit is contained in:
parent
1646bb56f4
commit
94914907ba
@ -25,11 +25,7 @@ function App() {
|
|||||||
const frameProcessor = useFrameProcessor((frame) => {
|
const frameProcessor = useFrameProcessor((frame) => {
|
||||||
'worklet'
|
'worklet'
|
||||||
const isHotdog = detectIsHotdog(frame)
|
const isHotdog = detectIsHotdog(frame)
|
||||||
if (isHotdog) {
|
console.log(isHotdog ? "Hotdog!" : "Not Hotdog.")
|
||||||
console.log("Hotdog!")
|
|
||||||
} else {
|
|
||||||
console.log("Not Hotdog!")
|
|
||||||
}
|
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user