I'm new to React and I often see the usage of React's useState like the following line:
setComment && setComment('Comment');
Why would you do that with the same useState function?
Thanks in advance!
I'm new to React and I often see the usage of React's useState like the following line:
setComment && setComment('Comment');
Why would you do that with the same useState function?
Thanks in advance!