{"_id":"react-pure-props","_rev":"3347950","name":"react-pure-props","description":"compare only the props. If the state does not change, do not re-ender.","dist-tags":{"latest":"0.1.5"},"maintainers":[{"name":"younkue","email":""}],"time":{"modified":"2024-08-07T03:53:05.000Z","created":"2019-06-08T16:36:35.350Z","0.1.5":"2019-07-12T05:03:18.079Z","0.1.4":"2019-07-11T05:08:30.501Z","0.1.3":"2019-07-11T05:00:57.876Z","0.1.2":"2019-06-08T17:02:39.890Z","0.1.1":"2019-06-08T16:37:43.358Z","0.1.0":"2019-06-08T16:36:35.350Z"},"users":{},"author":{"name":"Daybrush"},"repository":{"type":"git","url":"https://github.com/daybrush/pure-props/tree/master/react-pure-props"},"versions":{"0.1.5":{"name":"react-pure-props","version":"0.1.5","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"https://github.com/daybrush/pure-props/tree/master/react-pure-props"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/pure-props/issues"},"homepage":"https://github.com/daybrush/pure-props#readme","dependencies":{"shallowequal":"^1.1.0"},"devDependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"_id":"react-pure-props@0.1.5","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"f9d11255d4f52cba1c833d78e6f9b246a3a644db","size":4091,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.5.tgz"},"maintainers":[{"name":"younkue","email":""}],"_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.5_1562907797814_0.2147247564591621"},"_hasShrinkwrap":false,"publish_time":1562907798079,"_cnpm_publish_time":1562907798079,"_cnpmcore_publish_time":"2021-12-16T20:33:56.171Z"},"0.1.4":{"name":"react-pure-props","version":"0.1.4","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"https://github.com/daybrush/pure-props/tree/master/react-pure-props"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/pure-props/issues"},"homepage":"https://github.com/daybrush/pure-props#readme","dependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","shallowequal":"^1.1.0"},"devDependencies":{"@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"_id":"react-pure-props@0.1.4","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"9a6b34eb7c2d01abac00ae33dbcc1dba5d4f28d3","size":4090,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.4.tgz"},"maintainers":[{"name":"younkue","email":""}],"_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.4_1562821710383_0.8918337829985981"},"_hasShrinkwrap":false,"publish_time":1562821710501,"_cnpm_publish_time":1562821710501,"_cnpmcore_publish_time":"2021-12-16T20:33:56.443Z"},"0.1.3":{"name":"react-pure-props","version":"0.1.3","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"https://github.com/daybrush/pure-props/tree/master/react-pure-props"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/pure-props/issues"},"homepage":"https://github.com/daybrush/pure-props#readme","dependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","shallowequal":"^1.1.0"},"devDependencies":{"@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"_id":"react-pure-props@0.1.3","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"7d0306dcb8bcb430855042eebb49eb8383856252","size":3663,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.3.tgz"},"maintainers":[{"name":"younkue","email":""}],"_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.3_1562821257767_0.30510417562003767"},"_hasShrinkwrap":false,"publish_time":1562821257876,"_cnpm_publish_time":1562821257876,"_cnpmcore_publish_time":"2021-12-16T20:33:56.622Z"},"0.1.2":{"name":"react-pure-props","version":"0.1.2","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"git+https://github.com/daybrush/react-pure-props.git"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/react-pure-props/issues"},"homepage":"https://github.com/daybrush/react-pure-props#readme","dependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","shallowequal":"^1.1.0"},"devDependencies":{"@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"gitHead":"61087a333b91cdcd1f9439e0d9fc4155347155eb","_id":"react-pure-props@0.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"dist":{"shasum":"d8ba9e7d1328972e7768703210f535783a149512","size":3659,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.2.tgz"},"maintainers":[{"name":"younkue","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.2_1560013359706_0.4611580371932198"},"_hasShrinkwrap":false,"publish_time":1560013359890,"_cnpm_publish_time":1560013359890,"_cnpmcore_publish_time":"2021-12-16T20:33:56.836Z"},"0.1.1":{"name":"react-pure-props","version":"0.1.1","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"git+https://github.com/daybrush/react-pure-props.git"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/react-pure-props/issues"},"homepage":"https://github.com/daybrush/react-pure-props#readme","dependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","shallowequal":"^1.1.0"},"devDependencies":{"@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"gitHead":"5789cefefada6f6cba5001a1eb6a963330356931","_id":"react-pure-props@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"dist":{"shasum":"40f7df2fbc38c6857ae7b29f50726d116dc1149d","size":3660,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.1.tgz"},"maintainers":[{"name":"younkue","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.1_1560011863194_0.08361148068435997"},"_hasShrinkwrap":false,"publish_time":1560011863358,"_cnpm_publish_time":1560011863358,"_cnpmcore_publish_time":"2021-12-16T20:33:57.040Z"},"0.1.0":{"name":"react-pure-props","version":"0.1.0","description":"compare only the props. If the state does not change, do not re-ender.","main":"./dist/pure-props.cjs.js","module":"./dist/pure-props.esm.js","sideEffects":false,"types":"declaration/PureProps.d.ts","scripts":{"build":"rollup -c && npm run declaration && print-sizes ./dist ","declaration":"rm -rf declaration && tsc -p tsconfig.declaration.json"},"repository":{"type":"git","url":"git+https://github.com/daybrush/react-pure-props.git"},"keywords":["pure-component","purecomponent","pure-props"],"author":{"name":"Daybrush"},"license":"MIT","bugs":{"url":"https://github.com/daybrush/react-pure-props/issues"},"homepage":"https://github.com/daybrush/react-pure-props#readme","dependencies":{"@types/react":"^16.8.19","@types/shallowequal":"^1.1.1","shallowequal":"^1.1.0"},"devDependencies":{"@daybrush/builder":"^0.1.1","print-sizes":"0.0.4","react":"^16.8.6","tslint":"^5.17.0","typescript":"^3.5.1"},"_id":"react-pure-props@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"younkue","email":"daybrush@gmail.com"},"dist":{"shasum":"7dad1a8c951e79d502d6cd7d7f6fffdf3c4c4d8b","size":3662,"noattachment":false,"key":"/react-pure-props/-/react-pure-props-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-pure-props/download/react-pure-props-0.1.0.tgz"},"maintainers":[{"name":"younkue","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-pure-props_0.1.0_1560011795203_0.5814605884157171"},"_hasShrinkwrap":false,"publish_time":1560011795350,"_cnpm_publish_time":1560011795350,"_cnpmcore_publish_time":"2021-12-16T20:33:57.285Z"}},"readme":"# react-pure-props [![npm version](https://badge.fury.io/js/react-pure-props.svg)](https://badge.fury.io/js/react-pure-props)\n\nIt is a little different from the `PureComponent` of react.\n\nFirst, compare only the props. If the state does not change, do not re-render.\n\nHowever, if the update does not change only through `setState`, it also re-render.\n\n## Installation\n### npm\n```bash\n$ npm install react-pure-props\n```\n## How to use\n```tsx\nimport PureProps from \"react-pure-props\";\n\nclass Component extends PureProps<{}, {}> {\n    public render() {\n        return (\n            <div />\n        );\n    }\n}\n```\n\n\n## License\n\n```\nMIT License\n\nCopyright (c) 2019 Daybrush\n```\n","_attachments":{},"homepage":"https://github.com/daybrush/pure-props#readme","bugs":{"url":"https://github.com/daybrush/pure-props/issues"},"license":"MIT"}