mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fc85f24865
Adds a separate compiler flag for enabling the incomplete validation of ref access within function expressions. Unlike the previous PR for set-state-in-render validation, ref access in render can be okay in some circumstances so i'm leaving this off by default. The point of splitting this up is that our linting will be able to enable the rule without risk of false positives.