# LSK CHAT > React components for internationalization [![LSK logo](https://badgen.net/badge/icon/MADE%20BY%20LSK?icon=zeit&label&color=red&labelColor=red)](https://github.com/lskjs) [![NPM version](https://badgen.net/npm/v/@lskjs/t)](https://www.npmjs.com/package/@lskjs/chat) [![Package size](https://badgen.net/bundlephobia/minzip/@lskjs/t)](https://bundlephobia.com/result?p=@lskjs/chat) [![License LSK](https://badgen.net/npm/license/@lskjs/t)](https://github.com/lskjs/lskjs/blob/master/LICENSE) [![Chat on Telegram](https://img.shields.io/badge/Chat%20on-Telegram-brightblue.svg)](https://t.me/lskjs) ## Just press on t and take a result from @lskjs/chat. Or in reverse. ![](/blog/images/chat.png) ## 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 ; } } export default ({ storiesOf }) => { return storiesOf('chat/Chat').add('Chat', () => ( )); }; ``` _For more examples and usage, please refer_ - [Tutorial](https://github.com/lskjs/ux/blob/master/blog/tutorial.md#lskjs/chat) - [Storybook](https://lskjs.github.io/ux/?path=/story/t-chat) ## Examples See the [more examples](https://lskjs.github.io/ux/?path=/story/chat) in Storybook. # More info ## Links - [Tutorial](https://github.com/lskjs/ux/blob/master/blog/tutorial.md#lskjs/chat) - [Docs](https://lskjs.github.io/ux/styleguide/chat) - [Storybook](https://lskjs.github.io/ux/?path=/story/chat) - [Changelog](./CHANGELOG.md) ## Contact - [Email](mailto:hi@isuvorov.com) - [Telegram chat](https://t.me/lskjs) ## Contributors ✨

Igor Suvorov

💻 🎨 🤔
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): ## License This project is licensed under the MIT License - see the [LICENSE](/LICENSE) file for details ## Inspired by - i18next - mobx - mobx-provider ## Contributing 1. Fork it () 2. Create your feature branch (`git checkout -b feature/fooBar`) 3. Commit your changes (`git commit -am 'Add some fooBar'`) 4. Push to the branch (`git push origin feature/fooBar`) 5. Create a new Pull Request