UNPKG

lazy-child

Version:

React component that renders its child when it enters the viewport

68 lines (67 loc) 1.64 kB
{ "name": "lazy-child", "description": "React component that renders its child when it enters the viewport", "version": "0.3.1", "license": "MIT", "author": "Wyatt Johnston <w@wyatt.page>", "repository": { "type": "git", "url": "https://github.com/wpj/lazy-child.git" }, "bugs": { "url": "https://github.com/wpj/lazy-child/issues" }, "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "keywords": [ "react", "react-dom", "IntersectionObserver", "lazy" ], "files": [ "dist" ], "scripts": { "build": "microbundle --jsx React.createElement", "prebuild": "rimraf dist", "test": "jest", "typecheck": "tsc --noEmit" }, "devDependencies": { "@babel/core": "^7.11.6", "@babel/plugin-proposal-class-properties": "^7.10.4", "@babel/preset-env": "^7.11.5", "@babel/preset-react": "^7.10.4", "@babel/preset-typescript": "^7.10.4", "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.0.2", "@types/jest": "^26.0.13", "@types/react": "^16.9.49", "babel-jest": "^26.3.0", "husky": "^4.3.0", "jest": "^26.4.2", "lint-staged": "^10.3.0", "microbundle": "^0.12.3", "prettier": "^2.1.1", "react": "^16.13.1", "react-dom": "^16.13.1", "rimraf": "^3.0.2", "typescript": "^4.0.2" }, "dependencies": { "react-peekaboo": "^0.4.1" }, "peerDependencies": { "react": ">=16.8.0" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,jsx,ts,tsx,css,md}": "prettier --write" } }