react-share-lite icon indicating copy to clipboard operation
react-share-lite copied to clipboard

NextJS - Support for defaultProps

Open johanguse opened this issue 1 year ago • 2 comments

Hello guys, I installed the lite version on a Next.js v14 project and encountered a warning. I'm wondering if this issue is something that is planned to be addressed in future versions of react-share-lite or react-share-kit?

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

I'm using PNPM, Next 14.1.0

johanguse avatar Jan 24 '24 18:01 johanguse

See that warning in my end as well

Warning: p: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at p (webpack-internal:///(ssr)/./node_modules/react-share-kit/dist/index.es.js:34:32147)
    at a (webpack-internal:///(ssr)/./node_modules/react-share-kit/dist/index.es.js:34:34514)
    at div
    at Share (webpack-internal:///(ssr)/./app/cal_view/[id]/components/sidebar/Share.tsx:15:18)
    at div
    at div
    at div

Berdugo1994 avatar Aug 03 '24 15:08 Berdugo1994

See that warning in my end as well

Warning: p: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at p (webpack-internal:///(ssr)/./node_modules/react-share-kit/dist/index.es.js:34:32147)
    at a (webpack-internal:///(ssr)/./node_modules/react-share-kit/dist/index.es.js:34:34514)
    at div
    at Share (webpack-internal:///(ssr)/./app/cal_view/[id]/components/sidebar/Share.tsx:15:18)
    at div
    at div
    at div

I'm moving to https://next-share.js.org/ @Berdugo1994

johanguse avatar Aug 03 '24 15:08 johanguse