https://github.com/pacdiv/embedded-slack-react
https://github.com/pacdiv/embedded-slack-react
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pacdiv/embedded-slack-react
- Owner: pacdiv
- License: mit
- Created: 2017-02-26T15:50:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-26T15:54:23.000Z (over 9 years ago)
- Last Synced: 2024-04-25T15:22:26.752Z (about 2 years ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# embedded-slack-react
Embedded Slack React allows you to add a Slack built-in chat on your website using React.
> **Note:** :warning:
> Embedded Slack and Embedded Slack React were been developed as a technical try to determine if Slack can be used from a web page, to allow customers to discuss with a support team. They currently work with a test token so, **at this time, using those packages in production is not recommanded**.
### Prerequisites
----------
You need all [embedded-slack](https://github.com/pacdiv/embedded-slack) prerequisites, nothing more ! :slightly_smiling_face:
### Usage
----------
In this example, we create an EmbeddedSlackReact object with the two mandatory properties:
```javascript
// index.js
import EmbeddedSlackReact from 'embedded-slack-react'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(, document.getElementById('embedded-slack-wrapper'))
```
```html
```
Do you see a blue div on the bottom right of your website now ? Good, you made it ! :slightly_smiling_face:
### Built With
----------
[embedded-slack](https://github.com/pacdiv/embedded-slack) - Adds a Slack built-in chat to your website
[react](https://www.npmjs.com/package/react) - React is a JavaScript library for building user interfaces
### License
----------
[MIT](LICENSE.md)