https://github.com/felipethome/issue-multiple-react
https://github.com/felipethome/issue-multiple-react
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felipethome/issue-multiple-react
- Owner: felipethome
- Created: 2016-02-23T04:10:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T04:21:18.000Z (over 9 years ago)
- Last Synced: 2025-01-18T01:11:55.466Z (5 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multiple React Issue
Clone the repo, run:npm install
Run:
npm run gulp
Check: localhost:8889
## What is supposed to happen
The console will show the error: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).
## How to fix it
Uncomment in the gulpfile:var files = {
dependencies: [
// 'react-addons-transition-group',
'react',
'react-dom'
],
...
}