react18-loaders
Version:
A comprehensive library that unleashes the full potential of React 18 server components, providing customizable loading animation components alongside a fullscreen loader container. Designed to seamlessly integrate with React and Next.js.
2 lines (1 loc) • 622 B
JavaScript
;var n=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var p=(r,o)=>{for(var t in o)n(r,t,{get:o[t],enumerable:!0})},u=(r,o,t,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of d(o))!m.call(r,e)&&e!==t&&n(r,e,{get:()=>o[e],enumerable:!(s=R(o,e))||s.enumerable});return r};var E=r=>u(n({},"__esModule",{value:!0}),r);var _={};p(_,{useLoader:()=>L});module.exports=E(_);var i=require("r18gs");var a="r18-loaders";function L(){let[r,o]=(0,i.useRGS)(a);return{loading:r,setLoading:o}}0&&(module.exports={useLoader});