react-live icon indicating copy to clipboard operation
react-live copied to clipboard

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

Open stivenm16 opened this issue 1 year ago • 2 comments

Minimal set up following docs using Next.js 14:

image

It's working properly but it's displaiyng this error:

image

By now I can hide the warning using this: image

any solution?

stivenm16 avatar Jan 18 '24 22:01 stivenm16

https://github.com/FormidableLabs/react-live/issues/339

Looks like there is a PR but it's not merged yet

moshie avatar Jan 28 '24 08:01 moshie

We removed all defaultProps a couple versions ago, but it could be coming from a dependency. Which version are you using our react-live?

carbonrobot avatar Feb 29 '24 00:02 carbonrobot