Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jan 25, 2024 · 1 comment

Comments

@louieheaton
Copy link

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
Copy link
Contributor

I opened a Pull Request regarding this issue

#506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants