Replace useContext with use
ProprietaryIn React 19, useContext is replaced by the use API. This recipe updates both direct and namespace imports.
org. openrewrite. react.19. use-context-hookmod run . --recipe= org. openrewrite. react.19. use-context-hookInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.