mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
b28bb19e44
The compiler has an optimisation where it transforms a simple arrow function with only a return statement to a implicit arrow function. In the case, there's a directive in this simple arrow function, the directive gets dropped. Instead of dropping the directive, the compiler should perform this optimisation only if there are no directives. ghstack-source-id: 514cd2440025986a2d6d950694a7339d779b09f2 Pull Request resolved: https://github.com/facebook/react-forget/pull/2848