You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add the component inside my div buy I get the nex message:
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).
here is an example:
import React, {Component} from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import StarRating from 'react-star-rating'
class IndexContent extends Component{
render(){
return(
<div className="index-content">
<StarRating name="small-rating" caption="" size={10} totalStars={5} rating={3} />
</div>
)}
}
The text was updated successfully, but these errors were encountered:
I am trying to add the component inside my div buy I get the nex message:
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).here is an example:
The text was updated successfully, but these errors were encountered: