Reusable React chat widget with WebSocket support
npm install react-chat-initd-widgetbash
npm install react-chat-initd-widget
`
Peer dependencies:
You must have react, react-dom, and tailwindcss installed in your project.
š Usage
`jsx
import React from "react";
import ChatWidget from "react-chat-widget";
export default function App() {
return (
socketUrl="ws://localhost:8000/ws/chat"
welcomeMessage="š Hello! How can I help you today?"
/>
);
}
``