react-currency-input icon indicating copy to clipboard operation
react-currency-input copied to clipboard

Warning message - React 16.9.0

Open ricardocanelas opened this issue 6 years ago • 2 comments

Version:

"react-dom": "^16.9.0",
"react": "^16.9.0",
"react-currency-input": "^1.3.6",

Warning message:

react-dom.development.js:12029 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.

Please update the following components: CurrencyInput

ricardocanelas avatar Sep 18 '19 19:09 ricardocanelas

I have the same problem.

luanfvieira avatar Jun 30 '21 17:06 luanfvieira

I've just published @ericblade/react-currency-input^1.0.2 , which is pretty much identical in function to this repo, right now. there may be some slight behavior changes, and i removed the bits that were deprecated in this repo. I've placed a codepen at https://codepen.io/ericblade/pen/NWaLbGK

Whole thing is in typescript, and builds with the typescript compiler now.

I will be more than happy to continue work there (or if @jsillitoe returns, to hand it back off :) ) and accept pull reqs, and so on.

code repo is https://github.com/ericblade/react-currency-input

It replaces the deprecated usages, so no longer warns. Compatible with react 16 and 17.

ericblade avatar Jan 08 '22 23:01 ericblade