fix: WTF Where is my React

This commit is contained in:
CrescentLeaf
2025-09-20 18:41:46 +08:00
parent 167b157134
commit ab1bc844ab

View File

@@ -1,3 +1,5 @@
import React from "react"
export default function useAsyncEffect(func: Function, deps?: React.DependencyList) {
React.useEffect(() => {
;(async () => await func())