UNPKG

react-load-more-hook

Version:

This is a react hook to help you implement infinite scroll or load more feature on scroll to bottom of a page or element.

37 lines (31 loc) 1.23 kB
<!DOCTYPE html> <html> <head> <title>React Load More Playground</title> <base href="/"> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Polyfill(s) for older browsers --> <script src="node_modules/core-js-bundle/minified.js"></script> <script src="node_modules/zone.js/dist/zone.js"></script> <script type="systemjs-importmap" src="systemjs.imports.json"></script> <script src="node_modules/systemjs/dist/system.min.js"></script> <script src="node_modules/systemjs/dist/extras/amd.js"></script> <script src="node_modules/systemjs/dist/extras/named-exports.min.js"></script> <script> var systemResolve = System.resolve System.resolve = function (name, parent) { return Promise.resolve(systemResolve.call(this, name, parent)) .then(function (resolved) { if (!resolved.endsWith('.js')) resolved += '.js' return resolved }); }; System.import('../.playground/index.js').catch(function (err) { console.error(err); }); </script> </head> <body> <div id="app">Loading...</div> </body> </html>