chunkai1312 / muibox

Promise-based dialog boxes (alert, confirm, prompt) using Material-UI
https://chunkai1312.github.io/muibox
MIT License
20 stars 6 forks source link

Deprecation warnings #15

Closed fabioimpe closed 3 years ago

fabioimpe commented 3 years ago

Hello, I just noticed the deprecation warnings below since I started using muibox.

Warning: React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.

After some investigation I figured out that this is caused by "recompose" package. Since that package is used just to manage a state on the prompt dialog, is it possible to get rid of it and manage the state with the useState hook?

cargallo commented 3 years ago

is there any possibility to improve the code to avoid having this warning? It's really anoying

chunkai1312 commented 3 years ago

I've published v1.5.0 to remove recompose dependency. Thanks!