You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error that happens when using react-codepen-embed with React 18
Warning: ReactCodepen: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead
Description
This issue is based on this issue
The error that happens when using
react-codepen-embed
with React 18The root of the problem:
react-codepen-embed/src/index.js
Lines 80 to 87 in f472f58
Links to React PR and ESLint change:
defaultProps
rule to be deprecated on function components jsx-eslint/eslint-plugin-react#2396The text was updated successfully, but these errors were encountered: