You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The component uses _Lazy_ component to lazy load a component imported dynamically by _factory_ prop. The component loading is delayed by 5 seconds. During this time, _fallback_ prop is shown that renders a p element with the text __Loading component...__.
The component uses _Lazy_ component to lazy load a component imported dynamically by _factory_ prop. The component loading is delayed by 5 seconds. During this time, _fallback_ prop is shown that renders a p element with the text __Loading component...__.
* **`Lazy`**: Component Wrapper to lazy loading a Component. [See demo](https://nDriaDev.io/react-tools/#/components/Lazy)
46
-
* @param {Object} param - properties to load component.
46
+
* @param {Object} param - properties to load component.
47
47
* @param {() => Promise<{ [k:string]: T }>} param.factory - function that returns a Promise or another thenable.
48
48
* @param {string} [param.componentName] - name of the of the module to load lazy. If it is missing, and the _load_ execution result not have a default property, the first key in res is returned as result.
49
49
* @param {ReactNode} [object.fallback] - optional element to render when _when_ prop is false.
50
-
* @param {()=>void} [param.beforeLoad] - function that will be executed before loading component .
51
-
* @param {()=>void} [param.afterLoad] - function that will be executed after loading component .
50
+
* @param {()=>void} [param.beforeLoad] - function that will be executed before loading component .
51
+
* @param {()=>void} [param.afterLoad] - function that will be executed after loading component .
0 commit comments