the [@react.dev]( ) Compiler works for the same reason that compilers for pure programming languages are able to make non-trivial optimizations. if your code is composed of pure functions, it is safe to re-order their computation, or save the result for some inputs and reuse it for later for same inputs.
Bluesky Social
react.dev