docs: Shorten code sample
This commit is contained in:
parent
1646bb56f4
commit
94914907ba
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user