# LSK CHAT
> React components for internationalization
[](https://github.com/lskjs)
[](https://www.npmjs.com/package/@lskjs/chat)
[](https://bundlephobia.com/result?p=@lskjs/chat)
[](https://github.com/lskjs/lskjs/blob/master/LICENSE)
[](https://t.me/lskjs)
## Just press on t and take a result from @lskjs/chat. Or in reverse.

## Installation and usage
The easiest way to use is to install it from npm and build it into your app with Webpack.
```bash
npm install @lskjs/chat
```
Then use it in your app:
```jsx
import Chat from '@lskjs/chat';
class ChatComponent extends React.Component {
state = {
messages: [],
};
constructor() {
super();
serverMessages.forEach((serverMessage) => {
const { messages } = this.state;
const timeout = serverMessage.createdAt - Date.now();
setTimeout(() => {
// this.state.messages.push(serverMessage);
this.setState({
messages: [...messages, serverMessage],
});
}, timeout);
});
}
render() {
const { messages } = this.state;
return
Igor Suvorov 💻 🎨 🤔 |