Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invariant Violation: addComponentAsRefTo(...): ... #73

Closed
aleksandrenko opened this issue Jul 19, 2016 · 1 comment
Closed

Invariant Violation: addComponentAsRefTo(...): ... #73

aleksandrenko opened this issue Jul 19, 2016 · 1 comment

Comments

@aleksandrenko
Copy link

aleksandrenko commented Jul 19, 2016

bundle.js:9824 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).

Use case in simple react app:

..
getInitialState() {
    return {
      tabs:[
        (<Tab key={'tab0'} title={'Tab'}>
          <div>
            <h1>This tab cannot close</h1>
          </div>
        </Tab>)
      ]
    }
  },

  render() {
    return (
        <section>

          <Tabs
            tabs={this.state.tabs}
          />
...
@georgeOsdDev
Copy link
Owner

I just published v0.9.0 to NPM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants