DEV Community

loading...

Discussion on: Feature request: [state,,updateState] = useState(...)

Collapse
aqrojo profile image
aqrojo • Edited

There's a custom hook that works similar to the the old setState, take a look if it's what you're looking for:
github.com/streamich/react-use/blo...

Collapse
ipavlenko profile image
Igor Pavlenko Author

Yes, it is very useful, thanks!
Just wonder why this is not implemented in react.