Remove defaultProps for React 18.3.0
Shoreasg opened this issue · 2 comments
Shoreasg commented
Nuka Version: 5.41
React Version: 18.2.0
Chrome
Problem
Carousel: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. Getting this error due to this PR
jsx-eslint/eslint-plugin-react#2396
facebook/react#16210
Need to fix this before the release of react 18.3.0
VanTanev commented
Just wanted to mention, we're now hitting this in nextjs
13.4 with app router - it's shipping a canary of React
that has the deprecation warning.
Looking at the code, it seems to be a one-line change to fix it. I'll open a simple PR.