<commit_before>ActionCable Provider for React.

# Install

```
npm install --save react-actioncabl-providere
```

# Usage

In outer container:

```jsx
import { ActionCableProvider } from 'react-actioncable-provider'

export default function Container (props) {
    return (
        <ActionCableProvider url='ws://localhost:3000/cable'>
            <MyApp />
        </ActionCableProvider>
    )
}
```

In some UI screen:

```jsx
import React, { Component, PropTypes } from 'react'
import ActionCable from 'react-actioncable-provider'

export default class ChatRoom extends Component {
    static contextTypes = {
        cable: PropTypes.object.isRequired
    };

    componentDidMount () {
        this.subscription = this.context.cable.subscriptions.create(
            'ChatChannel',
            {
                received (data) {
                    console.log(data)<commit_msg>Fix README<commit_after>ActionCable Provider for React.

# Install

```
npm install --save react-actioncabl-providere
```

# Usage

In outer container:

```jsx
import { ActionCableProvider } from 'react-actioncable-provider'
const cable = ActionCable.createConsumer('ws://localhost:3000/cable')

export default function Container (props) {
    return (
        <ActionCableProvider cable={cable}>
            <MyApp />
        </ActionCableProvider>
    )
}
```

In some UI screen:

```jsx
import React, { Component, PropTypes } from 'react'
import ActionCable from 'react-actioncable-provider'

export default class ChatRoom extends Component {
    static contextTypes = {
        cable: PropTypes.object.isRequired
    };

    componentDidMount () {
        this.subscription = this.context.cable.subscriptions.create(
            'ChatChannel',
            {
                received (data) {
                    console.log(data)
{'fraction_non_alphanumeric': 0.10566868464501926, 'fraction_numerical': 0.004402861860209136, 'mean_word_length': 2.7639751552795033, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6825103', 'n_tokens_mistral': 531, 'n_tokens_neox': 507, 'n_words': 123}