Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipethome/issue-multiple-react
https://github.com/felipethome/issue-multiple-react
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/felipethome/issue-multiple-react
- Owner: felipethome
- Created: 2016-02-23T04:10:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T04:21:18.000Z (over 8 years ago)
- Last Synced: 2024-04-18T06:59:16.177Z (7 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'
],
...
}