devexpress-reporting-react
Version:
DevExpress Reporting React provides the capability to develop a reporting application to create and customize reports.
7 lines (6 loc) • 313 B
JavaScript
import React from 'react';
import { initializeLazyImagesBinding } from 'devexpress-reporting/viewer/internal/_bindings';
const useDxLazyImages = (ref, options) => {
React.useEffect(() => options && initializeLazyImagesBinding(ref.current, options), [options, ref.current]);
};
export default useDxLazyImages;