chatscope / use-chat

React hook for state management in chat applications.
https://chatscope.io
MIT License
147 stars 23 forks source link

Post example code of the linked demo site #5

Closed jorgeig-space closed 3 years ago

jorgeig-space commented 3 years ago

First, let me say this library looks great and I think it has massive potential!

There is an example code in the repo for a very simple example, which is already quite useful while documentation does not come.

However, in the demo site https://chatscope.io/demo/ there are slightly more complex functionalities (groups, the back arrow works in responsive design, etc.). It would be great to have that code (as-is) as an example in this repository.

Many thanks!

supersnager commented 3 years ago

@jorgeig-space Thank you for the kind words :)

The problem is that the demo on the website is not based on use-chat library :) The demo was done before this library was made.

For the responsive back arrow please see this issue: https://github.com/chatscope/chat-ui-kit-react/issues/47 and the example in the documentation: https://chatscope.io/storybook/react/?path=/story/components-maincontainer--toggle-conversation-list-using-the-back-button To show the back arrow in this example, please shrink the browser window.

Also please tell me exactly what features of the demo you are interested in. I'll try to explain it.