yosbelms / react-progressive-loader

Utility to load images and React components progressively, and get code splitting for free
217 stars 12 forks source link

React does not recognize the `aspectRatio` prop on a DOM element #5

Closed mikoSTAR closed 5 years ago

mikoSTAR commented 5 years ago

Hi I got following error once used with React "16.4.1". Is that something that you noticed as well?

Warning: React does not recognize the `aspectRatio` prop on a DOM element. 
If you intentionally want it to appear in the DOM as a custom attribute,
 spell it as lowercase `aspectratio` instead. 
If you accidentally passed it from a parent component, 
remove it from the DOM element.
    in div (created by Bare)
    in Bare (created by Img)
yosbelms commented 5 years ago

Can you provide some code to reproduce this issue?

mikoSTAR commented 5 years ago

It happens once you try to use aspectRatio prop. For example: <Img src='image.jpeg' placeholderSrc='image-placeholder.jpeg' aspectRatio='1' />

yosbelms commented 5 years ago

fixed in 0.2.2