react icon indicating copy to clipboard operation
react copied to clipboard

defaultProps deprecation warning

Open PatrikTrefil opened this issue 2 years ago • 5 comments

Many components in this library use defaultProps, which causes a warning in newer versions of React. It is expected to replaced with JavaScript default parameters instead. (Detailed explanation)

(Example in source code](https://github.com/formio/react/blob/c966dd1d93d1ee5b5610496e2578ebc9ce153eb6/src/components/FormEdit.jsx#L164C13-L164C13)

PatrikTrefil avatar Jul 25 '23 10:07 PatrikTrefil

I agree, and PRs are welcome!

brendanbond avatar Jul 25 '23 21:07 brendanbond

Can i work on this issue?

snehaljos avatar Jul 31 '23 15:07 snehaljos

That would be great @snehaljos!

PatrikTrefil avatar Aug 02 '23 08:08 PatrikTrefil

is this issue still open ? if yes I would like to contribute.

lokeshshinde08 avatar Feb 16 '24 14:02 lokeshshinde08

hi @lokeshshinde08 I'm currently in the process of migrating our React components to TypeScript (done w/ Form, now onto FormBuilder and FormEdit cc: @PatrikTrefil) but thank you for the offer!

brendanbond avatar Feb 20 '24 14:02 brendanbond