{"_id":"react-side-effect","_rev":"3128119","name":"react-side-effect","description":"Create components whose prop changes map to a global side effect","dist-tags":{"latest":"2.1.2"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"time":{"modified":"2023-11-27T06:26:19.000Z","created":"2015-02-15T15:33:19.818Z","2.1.2":"2022-06-26T21:25:36.409Z","2.1.1":"2020-11-01T18:44:38.923Z","2.1.0":"2019-09-04T20:14:13.797Z","2.0.0":"2019-08-31T16:52:20.988Z","1.2.0":"2019-08-28T22:01:38.772Z","1.1.5":"2018-02-23T00:16:49.966Z","1.1.4":"2018-02-22T18:41:55.406Z","1.1.3":"2017-05-23T17:49:03.643Z","1.1.2":"2017-05-23T17:43:31.640Z","1.1.1":"2017-05-23T15:41:29.921Z","1.1.0":"2017-01-08T19:25:12.611Z","1.0.2":"2015-09-12T13:30:01.312Z","1.0.1":"2015-09-02T14:37:40.763Z","1.0.0":"2015-08-27T01:39:27.312Z","0.3.2":"2015-08-25T19:31:49.246Z","0.3.1":"2015-08-11T10:53:43.529Z","0.3.0":"2015-02-22T12:35:53.313Z","0.2.0":"2015-02-16T15:57:01.795Z","0.1.0":"2015-02-15T15:33:19.818Z"},"users":{"backnight":true,"abuelwafa":true,"wayn":true,"liximomo":true},"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"versions":{"2.1.2":{"name":"react-side-effect","version":"2.1.2","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","url":"https://descioli.design"}],"peerDependencies":{"react":"^16.3.0 || ^17.0.0 || ^18.0.0"},"dependencies":{},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/preset-react":"^7.0.0","@babel/register":"^7.5.5","babel-plugin-add-module-exports":"^1.0.2","chai":"^3.2.0","create-react-class":"^15.6.3","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.14.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^16.9.0","react-dom":"^16.9.0","rimraf":"^2.4.3","rollup":"^1.20.3","rollup-plugin-babel":"^4.0.0","rollup-plugin-uglify":"^3.0.0"},"gitHead":"e17202b58de7921390bfeb71c36d1e0b31e84535","_id":"react-side-effect@2.1.2","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"shasum":"dc6345b9e8f9906dc2eeb68700b615e0b4fe752a","size":5422,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-2.1.2.tgz"},"_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"directories":{},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_2.1.2_1656278736233_0.6250751323880388"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-26T21:25:39.765Z","publish_time":1656278736409,"_cnpm_publish_time":1656278736409},"2.1.1":{"name":"react-side-effect","version":"2.1.1","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","url":"https://descioli.design"}],"peerDependencies":{"react":"^16.3.0 || ^17.0.0"},"dependencies":{},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/preset-react":"^7.0.0","@babel/register":"^7.5.5","babel-plugin-add-module-exports":"^1.0.2","chai":"^3.2.0","create-react-class":"^15.6.3","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.14.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^16.9.0","react-dom":"^16.9.0","rimraf":"^2.4.3","rollup":"^1.20.3","rollup-plugin-babel":"^4.0.0","rollup-plugin-uglify":"^3.0.0"},"gitHead":"b0b319fbe82de264cf68a99bb0d2b4804ab88ca9","_id":"react-side-effect@2.1.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"shasum":"66c5701c3e7560ab4822a4ee2742dee215d72eb3","size":5432,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-2.1.1.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_2.1.1_1604256278781_0.9306585467170427"},"_hasShrinkwrap":false,"publish_time":1604256278923,"_cnpm_publish_time":1604256278923},"2.1.0":{"name":"react-side-effect","version":"2.1.0","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","url":"https://descioli.design"}],"peerDependencies":{"react":"^16.3.0"},"dependencies":{},"devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/node":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/preset-env":"^7.5.5","@babel/preset-react":"^7.0.0","@babel/register":"^7.5.5","babel-plugin-add-module-exports":"^1.0.2","chai":"^3.2.0","create-react-class":"^15.6.3","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.14.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^16.9.0","react-dom":"^16.9.0","rimraf":"^2.4.3","rollup":"^1.20.3","rollup-plugin-babel":"^4.0.0","rollup-plugin-uglify":"^3.0.0"},"gitHead":"21e922877c3266410d8acda3cc16b28d2492e6da","_id":"react-side-effect@2.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"1ce4a8b4445168c487ed24dab886421f74d380d3","size":5385,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-2.1.0.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_2.1.0_1567628053685_0.7843533141138546"},"_hasShrinkwrap":false,"publish_time":1567628053797,"_cnpm_publish_time":1567628053797},"2.0.0":{"name":"react-side-effect","version":"2.0.0","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","url":"https://descioli.design"}],"peerDependencies":{"react":"^16.9.0"},"dependencies":{"shallowequal":"^1.0.1"},"devDependencies":{"@babel/cli":"7.0.0","@babel/core":"7.0.0","@babel/node":"7.0.0","@babel/plugin-proposal-class-properties":"7.0.0","@babel/plugin-proposal-object-rest-spread":"7.0.0","@babel/preset-env":"7.0.0","@babel/preset-react":"7.0.0","@babel/register":"7.0.0","babel-plugin-add-module-exports":"^0.2.1","chai":"^3.2.0","create-react-class":"^15.6.3","enzyme":"^3.10.0","enzyme-adapter-react-16":"^1.14.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^16.9.0","react-dom":"^16.9.0","rimraf":"^2.4.3","rollup":"^1.20.3","rollup-plugin-babel":"^4.0.0","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-uglify":"^3.0.0"},"gitHead":"7c9f83e6fdf9458488c2e840020b9358250ede31","_id":"react-side-effect@2.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"47163e0ede952929347e0894e02239f44f3f0e63","size":5974,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-2.0.0.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_2.0.0_1567270340859_0.827852896274837"},"_hasShrinkwrap":false,"publish_time":1567270340988,"_cnpm_publish_time":1567270340988},"1.2.0":{"name":"react-side-effect","version":"1.2.0","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","url":"https://descioli.design"}],"peerDependencies":{"react":"^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"shallowequal":"^1.0.1"},"devDependencies":{"@babel/cli":"7.0.0","@babel/core":"7.0.0","@babel/node":"7.0.0","@babel/plugin-proposal-class-properties":"7.0.0","@babel/plugin-proposal-object-rest-spread":"7.0.0","@babel/preset-env":"7.0.0","@babel/preset-react":"7.0.0","@babel/register":"7.0.0","babel-plugin-add-module-exports":"^0.2.1","chai":"^3.2.0","enzyme":"^2.7.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3","rollup":"^1.20.3","rollup-plugin-babel":"^4.0.0","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-uglify":"^3.0.0"},"gitHead":"c913e1b02876b0788d48e026d47a4d4d973ff846","_id":"react-side-effect@1.2.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"0e940c78faba0c73b9b0eba9cd3dda8dfb7e7dae","size":5976,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.2.0.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_1.2.0_1567029698598_0.9152016337648985"},"_hasShrinkwrap":false,"publish_time":1567029698772,"_cnpm_publish_time":1567029698772},"1.1.5":{"name":"react-side-effect","version":"1.1.5","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepare":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","email":"louis.descioli@gmail.com"}],"peerDependencies":{"react":"^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"exenv":"^1.2.1","shallowequal":"^1.0.1"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-react":"^6.16.0","babel-register":"^6.18.0","chai":"^3.2.0","enzyme":"^2.7.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-uglify":"^3.0.0"},"files":["LICENSE","README.md","lib/"],"gitHead":"f807f02aebc69d0e17428e7bf5886fb83b91312e","_id":"react-side-effect@1.1.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"dist":{"shasum":"f26059e50ed9c626d91d661b9f3c8bb38cd0ff2d","size":6393,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.5.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_1.1.5_1519345009690_0.4184072669482639"},"_hasShrinkwrap":false,"publish_time":1519345009966,"_cnpm_publish_time":1519345009966},"1.1.4":{"name":"react-side-effect","version":"1.1.4","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","module":"lib/index.es.js","scripts":{"build":"node scripts/build.js","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","email":"louis.descioli@gmail.com"}],"peerDependencies":{"react":"^0.13.0 || ^0.14.0 || ^15.0.0 || ^16.0.0"},"dependencies":{"exenv":"^1.2.1","shallowequal":"^1.0.1"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-react":"^6.16.0","babel-register":"^6.18.0","chai":"^3.2.0","enzyme":"^2.7.0","gzip-size":"^4.1.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","pretty-bytes":"^4.0.2","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3","rollup":"^0.56.2","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.3.0","rollup-plugin-node-resolve":"^3.0.3","rollup-plugin-uglify":"^3.0.0"},"files":["LICENSE","README.md","lib/"],"gitHead":"b263a0228304cc9ac235bb77c6866df1f1b8d1dc","_id":"react-side-effect@1.1.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"lourd","email":"louis.descioli@gmail.com"},"dist":{"shasum":"df3b8db8e90af0358bcb718bc1ba6205f3774e8d","size":6393,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.4.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect_1.1.4_1519324915291_0.8006321563802754"},"_hasShrinkwrap":false,"publish_time":1519324915406,"_cnpm_publish_time":1519324915406},"1.1.3":{"name":"react-side-effect","version":"1.1.3","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","email":"louis.descioli@gmail.com"}],"dependencies":{"exenv":"^1.2.1","shallowequal":"^1.0.1"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-preset-es2015":"^6.18.0","babel-preset-react":"^6.16.0","babel-preset-stage-2":"^6.18.0","babel-register":"^6.18.0","chai":"^3.2.0","enzyme":"^2.7.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3"},"files":["LICENSE","README.md","lib/"],"gitHead":"c3c84dab16e3dfb790933a557b98153211cf0126","_id":"react-side-effect@1.1.3","_shasum":"512c25abe0dec172834c4001ec5c51e04d41bc5c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"lourd","email":"louis@grovelabs.io"},"dist":{"shasum":"512c25abe0dec172834c4001ec5c51e04d41bc5c","size":4364,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.3.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect-1.1.3.tgz_1495561742716_0.6032658661715686"},"directories":{},"publish_time":1495561743643,"_hasShrinkwrap":false,"_cnpm_publish_time":1495561743643},"1.1.2":{"name":"react-side-effect","version":"1.1.2","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","email":"louis.descioli@gmail.com"}],"dependencies":{"exenv":"^1.2.1","shallowequal":"^0.2.2"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-preset-es2015":"^6.18.0","babel-preset-react":"^6.16.0","babel-preset-stage-2":"^6.18.0","babel-register":"^6.18.0","chai":"^3.2.0","enzyme":"^2.7.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3"},"files":["LICENSE","README.md","lib/"],"gitHead":"a52661fe8e2b59dd422cea88a0704a13dacf7d33","_id":"react-side-effect@1.1.2","_shasum":"10e35e6929689ca15b9fae800a20167288c01c79","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"lourd","email":"louis@grovelabs.io"},"dist":{"shasum":"10e35e6929689ca15b9fae800a20167288c01c79","size":4360,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.2.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect-1.1.2.tgz_1495561410108_0.7640702917706221"},"directories":{},"publish_time":1495561411640,"_hasShrinkwrap":false,"_cnpm_publish_time":1495561411640},"1.1.1":{"name":"react-side-effect","version":"1.1.1","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","contributors":[{"name":"Louis DeScioli","email":"louis.descioli@gmail.com"}],"dependencies":{"exenv":"^1.2.1","shallowequal":"^1.0.0"},"devDependencies":{"babel-cli":"^6.18.0","babel-core":"^6.21.0","babel-preset-es2015":"^6.18.0","babel-preset-react":"^6.16.0","babel-preset-stage-2":"^6.18.0","babel-register":"^6.18.0","chai":"^3.2.0","enzyme":"^2.7.0","isparta":"^4.0.0","jsdom":"^9.9.1","mocha":"^3.2.0","react":"^15.4.2","react-addons-test-utils":"^15.4.2","react-dom":"^15.4.2","rimraf":"^2.4.3"},"files":["LICENSE","README.md","lib/"],"gitHead":"d3413e2b866f698d66b815fa67a373e04f27b8fc","_id":"react-side-effect@1.1.1","_shasum":"670e5f5b0c20323b78d29799c9d9a805f9184f7c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"lourd","email":"louis@grovelabs.io"},"dist":{"shasum":"670e5f5b0c20323b78d29799c9d9a805f9184f7c","size":4281,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.1.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-side-effect-1.1.1.tgz_1495554089034_0.2652379705104977"},"directories":{},"publish_time":1495554089921,"_cnpm_publish_time":1495554089921,"_hasShrinkwrap":false},"1.1.0":{"name":"react-side-effect","version":"1.1.0","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","dependencies":{"exenv":"^1.2.1","shallowequal":"^0.2.2"},"devDependencies":{"babel":"^5.8.23","chai":"^3.2.0","isparta":"^3.0.4","jsdom":"^6.3.0","mocha":"^2.3.0","react":"^0.13.3","rimraf":"^2.4.3"},"files":["LICENSE","README.md","lib/"],"gitHead":"a540a19512bdd62bdeab8a82e129ebef52b33513","_id":"react-side-effect@1.1.0","_shasum":"57209f7ebc940d55e0fda82fe51422654175d609","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"lourd","email":"louis@grovelabs.io"},"dist":{"shasum":"57209f7ebc940d55e0fda82fe51422654175d609","size":4257,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.1.0.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/react-side-effect-1.1.0.tgz_1483903511938_0.8280009301379323"},"directories":{},"publish_time":1483903512611,"_cnpm_publish_time":1483903512611,"_hasShrinkwrap":false},"1.0.2":{"name":"react-side-effect","version":"1.0.2","description":"Create components whose prop changes map to a global side effect","main":"lib/index.js","scripts":{"build":"babel src --out-dir lib","clean":"rimraf lib","prepublish":"npm test && npm run clean && npm run build","test":"mocha","test:watch":"mocha --watch","test:cov":"babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","dependencies":{"fbjs":"0.1.0-alpha.10"},"devDependencies":{"babel":"^5.8.23","chai":"^3.2.0","isparta":"^3.0.4","jsdom":"^6.3.0","mocha":"^2.3.0","react":"^0.13.3","rimraf":"^2.4.3"},"files":["LICENSE","README.md","lib/"],"gitHead":"c627af6f900062a73e4aadb5c56cbf8db657af4b","_id":"react-side-effect@1.0.2","_shasum":"98e354decdbf0281e4223d87852d33e345eda561","_from":".","_npmVersion":"3.3.3","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"98e354decdbf0281e4223d87852d33e345eda561","size":4311,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.0.2.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"publish_time":1442064601312,"_cnpm_publish_time":1442064601312,"_hasShrinkwrap":false},"1.0.1":{"name":"react-side-effect","version":"1.0.1","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","dependencies":{"fbjs":"0.1.0-alpha.10"},"gitHead":"cd02268a0bad6fc335ae2c36265a3535c695946d","_id":"react-side-effect@1.0.1","scripts":{},"_shasum":"1534287422468d463da00f5ad441df8e13b5b26b","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"1534287422468d463da00f5ad441df8e13b5b26b","size":3637,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.0.1.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"publish_time":1441204660763,"_cnpm_publish_time":1441204660763,"_hasShrinkwrap":false},"1.0.0":{"name":"react-side-effect","version":"1.0.0","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","dependencies":{"fbjs":"0.1.0-alpha.10"},"gitHead":"20dc7663eb20c5270f27d99adadbcaaeb621d6ca","_id":"react-side-effect@1.0.0","scripts":{},"_shasum":"717e125d411f3848c96a43103b00f508ff66cd56","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"717e125d411f3848c96a43103b00f508ff66cd56","size":3635,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-1.0.0.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"deprecated":"React Side Effect 1.0.0 has a memory leak on the server side. Please upgrade to 1.0.1.","directories":{},"publish_time":1440639567312,"_cnpm_publish_time":1440639567312,"_hasShrinkwrap":false},"0.3.2":{"name":"react-side-effect","version":"0.3.2","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","dependencies":{"fbjs":"0.1.0-alpha.10"},"gitHead":"198eaecf0b5cf6986f88d506a176c5310f9f1a44","_id":"react-side-effect@0.3.2","scripts":{},"_shasum":"0daff9af35a3ec98db2036dc1683d63fbe147710","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"0daff9af35a3ec98db2036dc1683d63fbe147710","size":2994,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-0.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-0.3.2.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"publish_time":1440531109246,"_cnpm_publish_time":1440531109246,"_hasShrinkwrap":false},"0.3.1":{"name":"react-side-effect","version":"0.3.1","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"git+https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","gitHead":"dd0de555e80951ca784dfd1a24910e66cf13094a","_id":"react-side-effect@0.3.1","scripts":{},"_shasum":"c65a5448911772ac1552b0216a89ec446976397a","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"dist":{"shasum":"c65a5448911772ac1552b0216a89ec446976397a","size":2963,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-0.3.1.tgz"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"directories":{},"publish_time":1439290423529,"_cnpm_publish_time":1439290423529,"_hasShrinkwrap":false},"0.3.0":{"name":"react-side-effect","version":"0.3.0","description":"Create components whose prop changes map to a global side effect","main":"index.js","peerDependencies":{"react":">=0.11.0 || >=0.13.0-beta.1"},"repository":{"type":"git","url":"https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","_id":"react-side-effect@0.3.0","_shasum":"be3be29d0204314a6cee556024526e31c7569d17","_from":"./","_npmVersion":"1.4.9","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"dist":{"shasum":"be3be29d0204314a6cee556024526e31c7569d17","size":3019,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-0.3.0.tgz"},"directories":{},"publish_time":1424608553313,"_cnpm_publish_time":1424608553313,"_hasShrinkwrap":false},"0.2.0":{"name":"react-side-effect","version":"0.2.0","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","gitHead":"52d82fff291e24a8537d229e8cfc107971d528cc","_id":"react-side-effect@0.2.0","scripts":{},"_shasum":"ab15d69b6b9578153e31dc5838b736879e7bf24a","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"dist":{"shasum":"ab15d69b6b9578153e31dc5838b736879e7bf24a","size":2977,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-0.2.0.tgz"},"directories":{},"publish_time":1424102221795,"_cnpm_publish_time":1424102221795,"_hasShrinkwrap":false},"0.1.0":{"name":"react-side-effect","version":"0.1.0","description":"Create components whose prop changes map to a global side effect","main":"index.js","repository":{"type":"git","url":"https://github.com/gaearon/react-side-effect.git"},"keywords":["react","component","side","effect"],"author":{"name":"Dan Abramov","email":"dan.abramov@me.com","url":"http://github.com/gaearon"},"license":"MIT","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"homepage":"https://github.com/gaearon/react-side-effect","_id":"react-side-effect@0.1.0","_shasum":"60477d4d1c83d13409f77100b94abbe55b058f5d","_from":"./","_npmVersion":"1.4.9","_npmUser":{"name":"gaearon","email":"dan.abramov@gmail.com"},"maintainers":[{"name":"gaearon","email":""},{"name":"lourd","email":"louis@grovelabs.io"}],"dist":{"shasum":"60477d4d1c83d13409f77100b94abbe55b058f5d","size":2371,"noattachment":false,"key":"/react-side-effect/-/react-side-effect-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-side-effect/download/react-side-effect-0.1.0.tgz"},"directories":{},"publish_time":1424014399818,"_cnpm_publish_time":1424014399818,"_hasShrinkwrap":false}},"readme":"# React Side Effect [![Downloads](https://img.shields.io/npm/dm/react-side-effect.svg)](https://npmjs.com/react-side-effect) [![npm version](https://img.shields.io/npm/v/react-side-effect.svg?style=flat)](https://www.npmjs.com/package/react-side-effect)\n\nCreate components whose prop changes map to a global side effect.\n\n## Installation\n\n```\nnpm install --save react-side-effect\n```\n\n### As a script tag\n\n#### Development\n\n```html\n<script src=\"https://unpkg.com/react/umd/react.development.js\" type=\"text/javascript\"></script>\n<script src=\"https://unpkg.com/react-side-effect/lib/index.umd.js\" type=\"text/javascript\"></script>\n```\n\n#### Production\n\n```html\n<script src=\"https://unpkg.com/react/umd/react.production.min.js\" type=\"text/javascript\"></script>\n<script src=\"https://unpkg.com/react-side-effect/lib/index.umd.min.js\" type=\"text/javascript\"></script>\n```\n\n## Use Cases\n\n* Setting `document.body.style.margin` or background color depending on current screen;\n* Firing Flux actions using declarative API depending on current screen;\n* Some crazy stuff I haven't thought about.\n\n## How's That Different from `componentDidUpdate`?\n\nIt gathers current props across *the whole tree* before passing them to side effect. For example, this allows you to create `<BodyStyle style>` component like this:\n\n```jsx\n// RootComponent.js\nreturn (\n  <BodyStyle style={{ backgroundColor: 'red' }}>\n    {this.state.something ? <SomeComponent /> : <OtherComponent />}\n  </BodyStyle>\n);\n\n// SomeComponent.js\nreturn (\n  <BodyStyle style={{ backgroundColor: this.state.color }}>\n    <div>Choose color: <input valueLink={this.linkState('color')} /></div>\n  </BodyStyle>\n);\n```\n\nand let the effect handler merge `style` from different level of nesting with innermost winning:\n\n```js\nimport { Component, Children } from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\n\nclass BodyStyle extends Component {\n  render() {\n    return Children.only(this.props.children);\n  }\n}\n\nBodyStyle.propTypes = {\n  style: PropTypes.object.isRequired\n};\n\nfunction reducePropsToState(propsList) {\n  var style = {};\n  propsList.forEach(function (props) {\n    Object.assign(style, props.style);\n  });\n  return style;\n}\n\nfunction handleStateChangeOnClient(style) {\n  Object.assign(document.body.style, style);\n}\n\nexport default withSideEffect(\n  reducePropsToState,\n  handleStateChangeOnClient\n)(BodyStyle);\n```\n\nOn the server, you’ll be able to call `BodyStyle.peek()` to get the current state, and `BodyStyle.rewind()` to reset for each next request. The `handleStateChangeOnClient` will only be called on the client.\n\n## API\n\n#### `withSideEffect: (reducePropsToState, handleStateChangeOnClient, [mapStateOnServer]) -> ReactComponent -> ReactComponent`\n\nA [higher-order component](https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750) that, when mounting, unmounting or receiving new props, calls `reducePropsToState` with `props` of **each mounted instance**. It is up to you to return some state aggregated from these props.\n\nOn the client, every time the returned component is (un)mounted or its props change, `reducePropsToState` will be called, and the recalculated state will be passed to `handleStateChangeOnClient` where you may use it to trigger a side effect.\n\nOn the server, `handleStateChangeOnClient` will not be called. You will still be able to call the static `rewind()` method on the returned component class to retrieve the current state after a `renderToString()` call. If you forget to call `rewind()` right after `renderToString()`, the internal instance stack will keep growing, resulting in a memory leak and incorrect information. You must call `rewind()` after every `renderToString()` call on the server.\n\nFor testing, you may use a static `peek()` method available on the returned component. It lets you get the current state without resetting the mounted instance stack. Don’t use it for anything other than testing.\n\n## Usage\n\nHere's how to implement [React Document Title](https://github.com/gaearon/react-document-title) (both client and server side) using React Side Effect:\n\n```js\nimport React, { Children, Component } from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-side-effect';\n\nclass DocumentTitle extends Component {\n  render() {\n    if (this.props.children) {\n      return Children.only(this.props.children);\n    } else {\n      return null;\n    }\n  }\n}\n\nDocumentTitle.propTypes = {\n  title: PropTypes.string.isRequired\n};\n\nfunction reducePropsToState(propsList) {\n  var innermostProps = propsList[propsList.length - 1];\n  if (innermostProps) {\n    return innermostProps.title;\n  }\n}\n\nfunction handleStateChangeOnClient(title) {\n  document.title = title || '';\n}\n\nexport default withSideEffect(\n  reducePropsToState,\n  handleStateChangeOnClient\n)(DocumentTitle);\n```\n","_attachments":{},"homepage":"https://github.com/gaearon/react-side-effect","bugs":{"url":"https://github.com/gaearon/react-side-effect/issues"},"license":"MIT"}