sealninja / react-grid-system

A powerful Bootstrap-like responsive grid system for React.
https://sealninja.github.io/react-grid-system/
MIT License
812 stars 83 forks source link

Warning: ScreenClassProvider: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #497

Open louieheaton opened 5 months ago

louieheaton commented 5 months ago

Just ran across this issue... Has anyone else come across before?

Using Next App Router (v14.0.3, React v18)

Warning: ScreenClassProvider: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at ScreenClassProvider (webpack-internal:///(app-pages-browser)/./node_modules/react-grid-system/build/context/ScreenClassProvider/index.js:21:5)
    at ScreenClassResolver (webpack-internal:///(app-pages-browser)/./node_modules/react-grid-system/build/context/ScreenClassResolver/index.js:15:5)

Offending code - no other config done for react-grid-system

<ColorBackground>
    <Container>
        <div>Test</div>
    </Container>
</ColorBackground>
mateeusduarte commented 4 months ago

I opened a Pull Request regarding this issue

https://github.com/sealninja/react-grid-system/pull/506