Fix async effect callbacks

Proprietary

Wraps the body of an async callback passed to useEffect or useLayoutEffect in an immediately invoked async function, so the effect no longer returns a promise.

org.openrewrite.react.refactoring.fix-async-effect
mod run . --recipe=org.openrewrite.react.refactoring.fix-async-effect

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