react-bulma-components
react-bulma-components copied to clipboard
defaultProps on function components is deprecated
Describe the bug
- https://github.com/facebook/react/pull/16210
Causes:
Warning: Container: Support for defaultProps will be removed from function components in a future major release.
Use JavaScript default parameters instead.
at Container
(webpack-internal:///(sc_client)/./node_modules/react-bulma-components/cjs/components/container/container.js:27:23)
Sure enough: https://github.com/couds/react-bulma-components/blob/82d13fc9d8c9ffee46c21318450127b92cbf128e/src/components/container/container.js#L39
And: https://github.com/couds/react-bulma-components/blob/82d13fc9d8c9ffee46c21318450127b92cbf128e/src/components/container/container.js#L7
Versions
-
react-bulma-components:
: 4.1.0 -
react
: 18.2.0
Additional context
https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-defaultprops-on-function-components
77 files need patching. I can do it if maintainer will confirm this is still active and will get merged?