Replace useContext with use

Proprietary

In React 19, useContext is replaced by the use API. This recipe updates both direct and namespace imports.

org.openrewrite.react.19.use-context-hook
mod run . --recipe=org.openrewrite.react.19.use-context-hook

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.