Skip to content

Instantly share code, notes, and snippets.

@biantris
Created December 26, 2022 14:16
Show Gist options
  • Save biantris/3577fb541882219cc87a8074822bf362 to your computer and use it in GitHub Desktop.
Save biantris/3577fb541882219cc87a8074822bf362 to your computer and use it in GitHub Desktop.
useEffect as an observer with console.log
useEffect(() => {
        console.log(inquiryContext.assignedBy.name);
    }, [inquiryContext.assignedBy.name]);}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment