SIGN IN SIGN UP

Add RulesOfHooks support for `use`

Usage of the new `use` hook needs to conform to the rules of hooks, with
the one exception that it can be called conditionally.

ghstack-source-id: 7ea5beceaf2c080f2c48821b5117bdd0c1194836
Pull Request resolved: https://github.com/facebook/react/pull/25370
L
Lauren Tan committed
3fd9bd8e748231f2efb3624ee29f55633c0f3e05
Parent: 338e6a9