DEV Community

Discussion on: React: you remove the PROPS!

Collapse
 
ntvinhit profile image
Nguyễn Trọng Vĩnh

There're many alternative like constate and unstated.
You should have a look.

Collapse
 
priolo22 profile image
priolo22

I also looked at "unstated"
maybe I didn't spend enough time on it
I am an OOP lover !!! But frankly in "REACT"
not using "hooks" seems wrong to me

Collapse
 
priolo22 profile image
priolo22 • Edited

I looked at "constate" I didn't know him, thanks.
It is really interesting! It sounds very simple and effective!
It basically puts a hook in a provider
and makes it available to the whole project.
I should try it, but I don't understand if it's possible to use it outside of a react component
It would be useful when external processes that need to interact with the interface
The only thing I don't like is that it gives "too much freedom of interpretation"
That is, it doesn't set a standard scheme to use
Of course this could also be an advantage