DEV Community

loading...

Discussion on: Things to know about useState

Collapse
mbrtn profile image
Ruslan Shashkov

This is an antipattern anyway. Better to useMemo with useEffect in case of expensive calculations

Collapse
tkdodo profile image
Dominik D Author

Not sure what you mean with that. Do you have an example maybe?