re: How to build a LinkedIn-like Messaging App with React and TalkJS - Part 2 VIEW POST


Hi, thanks for useful post. Do you know how to close the chatbox once it's open ?


Hi Truong, thanks for reading the article.

For the chatbox, unmounting or closing the parent container of the chatbox will close it. There's a chatbox.destroy() method that can be called in the componentWillUnmount method.

If you are referring to the popup, then you can call the popup.close() method. Please let us know if you need further help.

code of conduct - report abuse