userback / widget-js

MIT License
4 stars 3 forks source link

remove deprecated defaultProps #40

Closed eluce2 closed 1 year ago

eluce2 commented 1 year ago

defaultProps are being deprecated in a future version of React. This results in an error message in my console for every page load when using the react widget.

This PR simply replaces the default props with JS default parameters instead

eluce2 commented 1 year ago

Are we able to get this merged soon? Thanks!

Shard commented 1 year ago

Hi @eluce2,

Thanks for the PR, I have merged this into develop and will sort out the CI issues.

We should be cutting a v0.2 release this week which will have this change.

Cheers.