DEV Community

Discussion on: Things to know about useState

mbrtn profile image
Ruslan Shashkov

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

tkdodo profile image
Dominik D Author

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

Thread Thread
wolfhoundjesse profile image
Jesse M. Holmes

narrator: … he did not have an example …