leefsmp / Re-Flex

Resizable Flex layout container components for advanced React web applications
https://leefsmp.github.io/Re-Flex/index.html
MIT License
639 stars 72 forks source link

React does not recognize the `maxSize` prop on a DOM element #114

Closed sarimabbas closed 3 years ago

sarimabbas commented 3 years ago

Hi there, I have this React code:

<ReflexContainer orientation="vertical">
 <ReflexElement minSize={200} size={250} maxSize={350}>
     <Sidebar />
  </ReflexElement>
  <ReflexSplitter />
  ...
</ReflexContainer>

Everything works perfectly fine, but in the console, I see the following error:

Warning: React does not recognize the maxSize prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase maxsize instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Would you have any recommendations for how to get rid of this warning? Thank you!

leefsmp commented 3 years ago

I am not seeing that warning... could you share a basic reproducible sample and provide more info about react version you are using?

leefsmp commented 3 years ago

Closing due to inactivity, feel free to reopen if you have more details. Thanks