dharness / react-chat-window

Intercom-style live chat window written in react
The Unlicense
671 stars 250 forks source link

Example be broken #109

Closed heatherbooker closed 5 years ago

heatherbooker commented 5 years ago

In the readme:

import React, {Component} from 'react'
import {render} from 'react-dom'
import {Launcher} from '../../src'

class Demo extends Component {

  constructor() {
    super();
    this.state = {
      messageList: messageHistory
    };
  }

messageHistory is undefined >> - could be confusing for new users.

heatherbooker commented 5 years ago

Also, import {Launcher} from '../../src' is a good path for the actual demo code but makes less sense as a readme example ><

heatherbooker commented 5 years ago

Also, render don't need to be imported.

dharness commented 5 years ago

LOL these guys are a mess