mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
c8055d7bae7ec72a14be633e6476b39d0fb51f32
This option was added defensively but it's not needed. There's no cost to including it always. I suspect this optional was added mainly to avoid needing to update tests. That's not a reason to have an unnecessary public API though. We have a praxis for dealing with source location in tests to avoid them failing tests. I also ported them to inline snapshots so that additions to the protocol isn't such a pain. DiffTrain build for commit https://github.com/facebook/react/commit/f0e808e5bcbfdaa24a8a0893cd718f4d189f2369.
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%