Hacker News new | ask | show | jobs
by brazukadev 231 days ago
https://react.dev/reference/react-compiler/directives/use-no...

"use no memo"

react now needs you to declare what you are not using, using a language "feature" that does not exist. It is crazy how people keep denying reality wrt React.

1 comments

They gave an escape hatch to people who wrote malformed hooks so their build process wouldn't crash, I don't really think that's a meaningful use case.

Are directives horrible? Absolutely. Did I encounter any need for this across porting 4 different apps and a component library to React 19? No, it was frictionless.

Because React is the same as it has been for a long time.