Thanks! Wondering, if this can help clear up some 'unused variable warnings' even if I am using { useEffect } i don't need to also import react, right?
{ useEffect }
import react
You're welcome, Jenessa.
Yes. You can.
Just check if the module isn't using JSX or other React.* methods such as "React.useEffect" (due to "unused variable warnings")
React.*
React.useEffect
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks!
Wondering, if this can help clear up some 'unused variable warnings' even if I am using
{ useEffect }
i don't need to alsoimport react
, right?You're welcome, Jenessa.
Yes. You can.
Just check if the module isn't using JSX or other
React.*
methods such as "React.useEffect
" (due to "unused variable warnings")