JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.63k stars 4.13k forks source link

Support for defaultProps will be removed warning #5687

Closed websiddu closed 1 year ago

websiddu commented 1 year ago

There is warning shown when using react-select

Warning: NoOptionsMessage: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at NoOptionsMessage (webpack-internal:///(app-client)/./node_modules/react-select/dist/index-6ea50319.esm.js:667:24)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at MenuList (webpack-internal:///(app-client)/./node_modules/react-select/dist/index-6ea50319.esm.js:637:24)
    at ScrollManager (webpack-internal:///(app-client)/./node_modules/react-select/dist/Select-ce3716e1.esm.js:819:23)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at Menu (webpack-internal:///(app-client)/./node_modules/react-select/dist/index-6ea50319.esm.js:607:24)
    at MenuPlacer (webpack-internal:///(app-client)/./node_modules/react-select/dist/index-6ea50319.esm.js:559:24)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at SelectContainer (webpack-internal:///(app-client)/./node_modules/react-select/dist/index-6ea50319.esm.js:795:24)
    at Select (webpack-internal:///(app-client)/./node_modules/react-select/dist/Select-ce3716e1.esm.js:1144:90)
    at eval (webpack-internal:///(app-client)/./node_modules/react-select/dist/react-select.esm.js:59:92)
image
Rall3n commented 1 year ago

Duplicate of #5596.