FormidableLabs / nuka-carousel

Small, fast, and accessibility-first React carousel library with an easily customizable UI and behavior to fit your brand and site.
https://commerce.nearform.com/open-source/nuka-carousel
Other
2.99k stars 594 forks source link

Fix deprecated defaultProps warning in React >18.2.0 #1024

Closed VanTanev closed 2 months ago

VanTanev commented 1 year ago

Description

In React 18.3.0 (unreleased) and React-canary (used by NextJS 13.4 App Router stable), react throws console warnings for defaultProps

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

Fixes #997

Type of Change

Checklist

Could not run tests, they're broken on main branch.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuka-carousel-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 6, 2023 3:29pm
VanTanev commented 9 months ago

Is there anything we can do to move this forward?