How to use the @deckdeckgo/lazy-img/dist/loader.applyPolyfills function in @deckdeckgo/lazy-img

To help you get started, we’ve selected a few @deckdeckgo/lazy-img examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github peterpeterparker / wooof / src / index.tsx View on Github external
type ReactProps = {
    [P in keyof T]?: DetailedHTMLProps, T[P]>;
};

type StencilToReact = StencilProps &
    ReactProps<u>;

declare global {
    // eslint-disable-next-line @typescript-eslint/no-namespace
    export namespace JSX {
        interface IntrinsicElements extends StencilToReact { }
    }
}

applyPolyfills().then(() =&gt; {
    defineCustomElements(window);
});

ReactDOM.render(, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.register();
</u>

@deckdeckgo/lazy-img

A dead simple Web Component to lazy load images

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis