chunkai1312 / muibox

Promise-based dialog boxes (alert, confirm, prompt) using Material-UI

Home Page:https://chunkai1312.github.io/muibox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation warnings

fabioimpe opened this issue · comments

commented

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?

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

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