Replies: 1 comment
-
|
Those are react-runtime hooks, you will need to use a react component: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is the example you wish to see?
I want to run a function every time the value of a variable changes, but when I try to run it like
`import {useState,useEffect} from 'react'
const [data,setData] = useState("")
console.log(data)
console.log('hi')
export{},`
nothing is output to the console. How do I change the code?
Is there any context that might help us understand?
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions