hzdg / react-imageloader

A React component for wrangling image loading

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It throws an error if <img> as children

spike886 opened this issue · comments

Throws an error it try to load node as children

<ImageLoader src={this.props.item.get('imageUrl')}>
  <img src="/images/no_image.png"/>
</ImageLoader>

throws the following error

Uncaught Error: Invariant Violation: findComponentRoot(..., .0.1.1.0.1:$newReleases:$newReleases.1:$11603.0.0.0.0.0.0): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ``.