Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

How to Run it in React App? #168

Open
hadisd5 opened this issue May 15, 2021 · 0 comments
Open

How to Run it in React App? #168

hadisd5 opened this issue May 15, 2021 · 0 comments

Comments

@hadisd5
Copy link

hadisd5 commented May 15, 2021

I want to know how to run this chatbox as a component in react
I also installed his library but nothing happens

import Chatroom from "@scalableminds/chatroom"
import React, { Component } from 'react'

export default class App extends Component {
  render() {
    return (
      <div>
        <Chatroom />
      </div>
    )
  }
}
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check the render method of `App`.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant