react-flexbox-grid icon indicating copy to clipboard operation
react-flexbox-grid copied to clipboard

printer.js:170 Warning: Unknown props

Open yanickrochon opened this issue 9 years ago • 3 comments
trafficstars

Using the package found at lifefilm:react-flexbox-grid, I get this error because the props are not cleaned up before assigning them to the element.

The form that should be used (which would be faster anyhow) is

const {
  xs, xsOffset,
  sm, smOffset,
  md, mdOffset,
  lg, lgOffset,
  reverse,
  className,
  tagName,
  children,
  ...others
} = this.props;

Then assign others as props to the element, this will result in props that are clean, and will get rid of the error.

yanickrochon avatar Nov 25 '16 21:11 yanickrochon

I could prepare a PR today if no one wants to fix this... the warnings are driving me crazy!

yanickrochon avatar Nov 28 '16 13:11 yanickrochon

Finally got some time to clone look closer into this issue, and it seems that I am loading from Atmosphere instead of npm. I'm the author of this package has not updated to the lastest.

yanickrochon avatar Nov 29 '16 14:11 yanickrochon

I noticed this is already fixed in the latest version of this package

aarosil avatar Nov 30 '16 22:11 aarosil