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

defaultProps Deprecation

Open leafkrober opened this issue 1 year ago • 1 comments

🐛 Bug Report

Console errors when using react-floater

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

image

To Reproduce

Render a floater and observe the console (note: this may only appear on react 18+)

Expected behavior

No console errors or messages about defaultProps deprecation

Run npx envinfo --system --binaries --npmPackages react-floater

  System:
    OS: macOS 14.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 1.17 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    pnpm: 9.1.1 - ~/.nvm/versions/node/v20.13.1/bin/pnpm
    bun: 1.1.12 - /opt/homebrew/bin/bun

leafkrober avatar Jun 13 '24 16:06 leafkrober

Hey @leafkrober

Which react version are you using?

gilbarbara avatar Jun 28 '24 06:06 gilbarbara

same - [email protected]

reergymerej avatar Aug 28 '24 17:08 reergymerej