foxact
Version:
React Hooks/Utils done right. For browser, SSR, and React Server Components.
1 lines • 287 B
JavaScript
const e=require("react").use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.catch(t=>{e.status="rejected",e.reason=t}).then(t=>{e.status="fulfilled",e.value=t}),e}});exports.use=e;
;