Software Engineer
Research and recommendations for modern stack websites.
Adding Zendesk livechat on a react app might not be as straghtforward as it looks.
The example uses state to check if $zopim is ready to interact (isZopimReady).
Once that state is true, $zopim is ready to be interacted with. The best way is to have a useEffect hook listening to isZopimReady and run the desired configurations on $zopin.
javascript