mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
7930a213d27a075491db40c97395d91e1b4bc805
--- quality of life improvement as this seemed to be confusing (oops, and thanks for the feedback!) We don't *really* need static annotations for whether a function returns jsx (e.g. should be rendered as a React element) or not (e.g. should be wrapped in a wrapper component. This PR adds check for returned jsx objects at runtime --- Tested by running diffing the output of `yarn sprout --verbose` between this PR and base.
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%