{
	"name": "mini-create-react-context",
	"versions": {
		"0.2.4": {
			"name": "mini-create-react-context",
			"version": "0.2.4",
			"description": "Smaller Polyfill for the proposed React context API",
			"main": "dist/cjs/index.js",
			"module": "dist/esm/index.js",
			"types": "dist/index.d.ts",
			"typings": "lib/index.d.ts",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/StringEpsilon/mini-create-react-context.git"
			},
			"author": {
				"name": "StringEpsilon"
			},
			"license": "MIT",
			"keywords": [
				"react",
				"context",
				"contextTypes",
				"polyfill",
				"ponyfill"
			],
			"scripts": {
				"test": "jest",
				"build": "rollup -c rollup.config.js",
				"prepublish": "npm run build"
			},
			"dependencies": {
				"gud": "^1.0.0",
				"tiny-warning": "^1.0.2"
			},
			"peerDependencies": {
				"prop-types": "^15.0.0",
				"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
			},
			"devDependencies": {
				"@babel/cli": "^7.4.3",
				"@babel/core": "^7.4.3",
				"@babel/plugin-proposal-class-properties": "^7.4.0",
				"@babel/preset-env": "^7.4.3",
				"@babel/preset-flow": "^7.0.0",
				"@babel/preset-react": "^7.0.0",
				"@babel/preset-typescript": "^7.3.3",
				"@types/enzyme": "^3.9.1",
				"@types/jest": "^24.0.11",
				"@types/react": "^16.8.12",
				"babel-jest": "^24.7.1",
				"enzyme": "^3.9.0",
				"enzyme-adapter-react-16": "^1.11.2",
				"enzyme-to-json": "^3.3.5",
				"jest": "^24.7.1",
				"prop-types": "^15.6.0",
				"raf": "^3.4.1",
				"react": "^16.2.0",
				"react-dom": "^16.2.0",
				"rollup": "^1.9.0",
				"rollup-plugin-babel": "^4.3.2",
				"rollup-plugin-commonjs": "^9.3.4",
				"rollup-plugin-node-resolve": "^4.1.0",
				"rollup-plugin-uglify": "^6.0.2"
			},
			"jest": {
				"snapshotSerializers": [
					"enzyme-to-json/serializer"
				]
			},
			"gitHead": "60e90da413d86c2361e0618820d5bb2628f2b9f7",
			"bugs": {
				"url": "https://github.com/StringEpsilon/mini-create-react-context/issues"
			},
			"homepage": "https://github.com/StringEpsilon/mini-create-react-context#readme",
			"_id": "mini-create-react-context@0.2.4",
			"_nodeVersion": "10.15.3",
			"_npmVersion": "6.9.0",
			"dist": {
				"integrity": "sha512-3KEXSA2sWXKDfiuMt5NFGsck0oR3iPJ/fiyYwYRACigMRdzWjkqz1MC8tKqJsYjciEukaJc4ISZaj+LBvanCkg==",
				"shasum": "091fa6d441f6cca603cf29fef0b9df268e5fe99f",
				"tarball": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.2.4.tgz",
				"fileCount": 7,
				"unpackedSize": 6570,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp9O5CRA9TVsSAnZWagAAeOYQAIxYo6kcWYCrlv/BbOTN\nrXYJb5I3Pklx1SzCZcyfELPJENuwfWyJktpxROm4W0I0PRiYIebA8Njuoxdm\nV4qaeUyWSIl25QGC0otHHMtXaiigJPJMC3xznEX6QWnOwP4qd8gOs5bmRE0i\nRsK/LWYg/7BhHIUItxLUJL0wVzg5J5vqzPBKCSaeCn9oGIFczp4CKMX2JjjM\npQRrSt0ZXHAVXvjowF3sqMv+Ltv0AqV5w56FWK3eHgpkmNG7VbSpfziJBGcr\n2IQqkyZ3Bug8nrmorCsGxWEN69ffLEj9roZCKvQ9a4RmMvTe8+3NcDd8KTnG\ne3WoQlQByt3nWGhl7tgmn2d4Sx/EwOWwC97hffuSAwYpEGs9gdvZ8FD5K476\nru6wF+nU0mqH/+FcgOWRoTF4kMCC2ologuJBc63fPqMNTQcHF13OsdvHlNAv\nkvQ/nO0uwA97A3q7n0rhKHIKYtToFCsGf2pma79cfB5imI2HX5zllY5GSvTT\n7rregAwO+4LyUcmpsKh84GOQhd3DAr8sTv6cJehQ8Td3SnGdvmON0e4EiWdX\nQJzGqIoZdX2h+wUqnZ6yWlcKQSDormEL7d020yy8G/HY+pcMmdordKrIelfF\nSVN8uXecmsFMtLb8zJ6LHJNb5TwRGvMeUZWZKtFNmxWIjB3loa+2sNcAaDyx\nF0/u\r\n=nanj\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "stringepsilon",
					"email": "stringepsilon@gmail.com"
				}
			],
			"_npmUser": {
				"name": "stringepsilon",
				"email": "stringepsilon@gmail.com"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/mini-create-react-context_0.2.4_1554502584288_0.9822684824475418"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		},
		"0.3.0": {
			"name": "mini-create-react-context",
			"version": "0.3.0",
			"description": "Smaller Polyfill for the proposed React context API",
			"main": "dist/cjs/index.js",
			"module": "dist/esm/index.js",
			"types": "dist/index.d.ts",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/StringEpsilon/mini-create-react-context.git"
			},
			"author": {
				"name": "StringEpsilon"
			},
			"license": "MIT",
			"keywords": [
				"react",
				"context",
				"contextTypes",
				"polyfill",
				"ponyfill"
			],
			"scripts": {
				"test": "jest",
				"build": "rollup -c rollup.config.js",
				"prepublish": "npm run build"
			},
			"dependencies": {
				"gud": "^1.0.0",
				"tiny-warning": "^1.0.2"
			},
			"peerDependencies": {
				"prop-types": "^15.0.0",
				"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
			},
			"devDependencies": {
				"@babel/cli": "^7.4.3",
				"@babel/core": "^7.4.3",
				"@babel/plugin-proposal-class-properties": "^7.4.0",
				"@babel/preset-env": "^7.4.3",
				"@babel/preset-flow": "^7.0.0",
				"@babel/preset-react": "^7.0.0",
				"@babel/preset-typescript": "^7.3.3",
				"@types/enzyme": "^3.9.1",
				"@types/jest": "^24.0.11",
				"@types/react": "^16.8.12",
				"babel-jest": "^24.7.1",
				"enzyme": "^3.9.0",
				"enzyme-adapter-react-16": "^1.11.2",
				"enzyme-to-json": "^3.3.5",
				"jest": "^24.7.1",
				"prop-types": "^15.6.0",
				"raf": "^3.4.1",
				"react": "^16.2.0",
				"react-dom": "^16.2.0",
				"rollup": "^1.9.0",
				"rollup-plugin-babel": "^4.3.2",
				"rollup-plugin-commonjs": "^9.3.4",
				"rollup-plugin-node-resolve": "^4.1.0",
				"rollup-plugin-uglify": "^6.0.2"
			},
			"jest": {
				"snapshotSerializers": [
					"enzyme-to-json/serializer"
				]
			},
			"gitHead": "9b61b2743f7e56bf8393f725af503e5b294b65ac",
			"bugs": {
				"url": "https://github.com/StringEpsilon/mini-create-react-context/issues"
			},
			"homepage": "https://github.com/StringEpsilon/mini-create-react-context#readme",
			"_id": "mini-create-react-context@0.3.0",
			"_nodeVersion": "10.15.3",
			"_npmVersion": "6.9.0",
			"dist": {
				"integrity": "sha512-5GSHaS5QlOrofQD5itzD7SWzeG2hmUBvOiumVUzYTEQow0nuTiBHRt+0M/GDgXxeGFFd5RTO7IPe53Qr1hUFCw==",
				"shasum": "526d19ffac4943a0825f035d903c391ebe5e6c46",
				"tarball": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.3.0.tgz",
				"fileCount": 7,
				"unpackedSize": 21435,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp9b7CRA9TVsSAnZWagAAxnAQAIASL6dnBmbseUJAOLwz\negFg+1rloVMTTcice8WzLaVx2pgRu8+01XSJgR30R+tbtgBGUF8fe8e4scJO\nn5JCzFqoFHFrWcK0zanfT7pM+Rfvc+GG5fwLNsfcRGSjER5UOaHxHxwBnz8s\nIddgbrCzGEg1+iK6QU0wPH/wNeWG/lpbUTZWi1ytARWk/v2eAlFOdplKWsaw\ndngNlESnwBV1LRFVIs4C0nuCQ8xiW0j+kYKAidNrqF5va9CimuX9zzmGHzVy\nuZd7By6+Iaakat9yEncn1OB0BaFCEjBgm5S/LsyjR3xkrEhpukXf8FVH2gCC\nBqMhr8EfLpm0YMnIO8g0ZZi9wREQGfeQHHNZx1jqf26N7s2yYSSxS8KKopnz\nYXMZ74VXPMj5k4qK8lV2W0WflwYdNLiqkObrKVkj/dokZFjboSzk7/tbRnql\n8cpkeImVmGPyDXLN+WcJEODTxdzC4rt3IhG6cxNLVU4h0H06X8DeHNU0rLLs\nbbYcALtM/BFdrjSn7h4zRsZap1Z9ZUY/4IyhvPGzFsUP0EIkxBR7NnIKHBTf\njpxE5OPX12nMV8nnFNjm+7auje25w8mo73A8/vbqpiUvJ3jcySaDuz1ZGwjr\nxGssJOC7EHrAjJMg8xY/UQw1VCmkc++FbeJXJrooMnGpGzT5GlbRzy5JyfL9\ngYgk\r\n=da8x\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "stringepsilon",
					"email": "stringepsilon@gmail.com"
				}
			],
			"_npmUser": {
				"name": "stringepsilon",
				"email": "stringepsilon@gmail.com"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/mini-create-react-context_0.3.0_1554503418332_0.9063353653711537"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		},
		"0.3.2": {
			"name": "mini-create-react-context",
			"version": "0.3.2",
			"description": "Smaller Polyfill for the proposed React context API",
			"main": "dist/cjs/index.js",
			"module": "dist/esm/index.js",
			"types": "dist/index.d.ts",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/StringEpsilon/mini-create-react-context.git"
			},
			"author": {
				"name": "StringEpsilon"
			},
			"license": "MIT",
			"keywords": [
				"react",
				"context",
				"contextTypes",
				"polyfill",
				"ponyfill"
			],
			"scripts": {
				"test": "jest",
				"build": "rollup -c rollup.config.js",
				"prepublish": "npm run build"
			},
			"dependencies": {
				"gud": "^1.0.0",
				"tiny-warning": "^1.0.2",
				"@babel/runtime": "^7.4.0"
			},
			"peerDependencies": {
				"prop-types": "^15.0.0",
				"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
			},
			"devDependencies": {
				"@babel/cli": "^7.4.3",
				"@babel/core": "^7.4.3",
				"@babel/plugin-proposal-class-properties": "^7.4.0",
				"@babel/preset-env": "^7.4.3",
				"@babel/preset-react": "^7.0.0",
				"@babel/preset-typescript": "^7.3.3",
				"@types/enzyme": "^3.9.1",
				"@types/jest": "^24.0.11",
				"@types/react": "^16.8.13",
				"@wessberg/rollup-plugin-ts": "^1.1.46",
				"babel-jest": "^24.7.1",
				"enzyme": "^3.9.0",
				"enzyme-adapter-react-16": "^1.11.2",
				"enzyme-to-json": "^3.3.5",
				"jest": "^24.7.1",
				"prop-types": "^15.6.0",
				"raf": "^3.4.1",
				"react": "^16.2.0",
				"react-dom": "^16.2.0",
				"rollup": "^1.10.0",
				"rollup-plugin-commonjs": "^9.3.4",
				"rollup-plugin-node-resolve": "^4.2.3",
				"rollup-plugin-uglify": "^6.0.2"
			},
			"jest": {
				"snapshotSerializers": [
					"enzyme-to-json/serializer"
				]
			},
			"gitHead": "262cc54dcf7495ddb52956fab2b9ce5e65c7f584",
			"bugs": {
				"url": "https://github.com/StringEpsilon/mini-create-react-context/issues"
			},
			"homepage": "https://github.com/StringEpsilon/mini-create-react-context#readme",
			"_id": "mini-create-react-context@0.3.2",
			"_nodeVersion": "10.15.3",
			"_npmVersion": "6.9.0",
			"dist": {
				"integrity": "sha512-2v+OeetEyliMt5VHMXsBhABoJ0/M4RCe7fatd/fBy6SMiKazUSEt3gxxypfnk2SHMkdBYvorHRoQxuGoiwbzAw==",
				"shasum": "79fc598f283dd623da8e088b05db8cddab250189",
				"tarball": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.3.2.tgz",
				"fileCount": 7,
				"unpackedSize": 18677,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsTh0CRA9TVsSAnZWagAA6wEP/RuRaqur3MX78uB8Gsiv\nx4RRwxJQH1P02VZH5LtiL5TbNr/n6Tq3OuaZRiy5MS1TloELtJE1GHEXTQTU\nxV49GB5sNn+HQtBOs//1Yu/9an5cH7xDVze2bLdlig2FT+iigZOB7KjjX/RP\nQVh4JKiQ/OsCmf4Lk+2sWe+28pGv9ExikLb9HtyisEnL21a8L3u12X8GYK02\ngQYHeX5V6PNmC6n5fecxx5H+39bxCwVz60hu4UIWgG9fkOPFH1Y3XzTr1J6k\ncvOxQUynymgFHN1lC1FEPPBP07tM0zwYJvTEQLxeNZgdkw2LGPmsKhh5tjbj\nfMPedZDEQzIOZbjNk7e/LkjArzXLCA4r1dlEnEUIcbpXf/T/SqFAAIg9qN/Q\n9sqeEsU3emg43WaKzvm2D6xQTkaAisVJGgKJPGtkcGEKQ/4TMCdEgFkbFpbr\nZZ+9Z5OwDL5uJVrAeGYRBcbZVhuwdOrZ409QVuBTYdMbHVpq4/5bzg/N3WxB\n98AZUWmw8AVjksn/6KVtCMdq60TSwjKMvfLw3IDKzW6TfpK+9wlh5Ugvl6dR\nw7Y7MrsybgTAgkyli3Si3G5ClVuyESQbmQJ9plDmQsa8JE/yNe6z0agAxGc4\nBwG1ZRTutdlelBwrp8EJzu6XCnf/xDSa5BSEHnHrW8VgLNPVefCj43rgwxFd\nRhss\r\n=U8+W\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "stringepsilon",
					"email": "stringepsilon@gmail.com"
				}
			],
			"_npmUser": {
				"name": "stringepsilon",
				"email": "stringepsilon@gmail.com"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/mini-create-react-context_0.3.2_1555118195489_0.24343283109295544"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		},
		"0.4.0": {
			"name": "mini-create-react-context",
			"version": "0.4.0",
			"description": "Smaller Polyfill for the proposed React context API",
			"main": "dist/cjs/index.js",
			"module": "dist/esm/index.js",
			"types": "dist/index.d.ts",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/StringEpsilon/mini-create-react-context.git"
			},
			"author": {
				"name": "StringEpsilon"
			},
			"license": "MIT",
			"keywords": [
				"react",
				"context",
				"contextTypes",
				"polyfill",
				"ponyfill"
			],
			"scripts": {
				"test": "jest",
				"build": "rollup -c rollup.config.js",
				"prepublish": "npm run build"
			},
			"dependencies": {
				"@babel/runtime": "^7.5.5",
				"tiny-warning": "^1.0.3"
			},
			"peerDependencies": {
				"prop-types": "^15.0.0",
				"react": "^0.14.0 || ^15.0.0 || ^16.0.0"
			},
			"devDependencies": {
				"@babel/core": "^7.8.6",
				"@babel/plugin-proposal-class-properties": "^7.8.3",
				"@babel/preset-env": "^7.8.6",
				"@babel/preset-react": "^7.8.3",
				"@babel/preset-typescript": "^7.8.3",
				"@types/enzyme": "^3.10.5",
				"@types/jest": "^25.1.3",
				"@types/react": "^16.8.23",
				"@wessberg/rollup-plugin-ts": "^1.2.19",
				"babel-jest": "^25.1.0",
				"enzyme": "^3.11.0",
				"enzyme-adapter-react-16": "^1.15.2",
				"enzyme-to-json": "^3.3.5",
				"jest": "^25.1.0",
				"prop-types": "^15.6.0",
				"raf": "^3.4.1",
				"react": "^16.2.0",
				"react-dom": "^16.2.0",
				"rollup": "^1.17.0",
				"rollup-plugin-commonjs": "^10.0.1",
				"rollup-plugin-node-resolve": "^5.2.0",
				"rollup-plugin-terser": "^5.2.0",
				"typescript": "^3.8.3"
			},
			"jest": {
				"snapshotSerializers": [
					"enzyme-to-json/serializer"
				]
			},
			"gitHead": "0e3e6e64e79390a40ed672b63bba4f7fe96ffc45",
			"bugs": {
				"url": "https://github.com/StringEpsilon/mini-create-react-context/issues"
			},
			"homepage": "https://github.com/StringEpsilon/mini-create-react-context#readme",
			"_id": "mini-create-react-context@0.4.0",
			"_nodeVersion": "13.9.0",
			"_npmVersion": "6.14.0",
			"dist": {
				"integrity": "sha512-b0TytUgFSbgFJGzJqXPKCFCBWigAjpjo+Fl7Vf7ZbKRDptszpppKxXH6DRXEABZ/gcEQczeb0iZ7JvL8e8jjCA==",
				"shasum": "df60501c83151db69e28eac0ef08b4002efab040",
				"tarball": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.0.tgz",
				"fileCount": 7,
				"unpackedSize": 19349,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXMPJCRA9TVsSAnZWagAA1pUP/AkirEioAeyAytTYih+z\nsMZ7eTPFv7IUFSVGezggKnmHaJmaRhXgJ8In3XHTHO8mrpyz5xX73iq8BbxG\noVTTrZOFLHWdKODlfz0RDy8fKdhXcPfUb8X/etuOOtUqXymMg4nmfjDrQwG6\n62W9+W0+Th+W2AU0zWoJHclvbZr6O27wvO7VaWYRr//jjepalFWEgpEifEqA\nJ038X4BxrIAdrPowQ6PvcT7a6iMIKoysi3VcyOFSuKbjJ6zK9d8JFpgyQN+b\nROgCSJvjJRrMGHkkh5NI7dhwPnnJRSw5GXodP6faNIOgTWSzT6b4eKojfpVu\n80jDyPFGCtufhXav6g9kvzogX8dQZWhGC8XWPRDXwCc/NnzcX9YvQ2cx+DRj\nM9hyMM+nwH1f4opCo570H1IXyZKtaOCbr63+BGMxeOIDCywlBw41IRfNvZOj\n9b1/cgh3u0k6lpTHP4Km7ZpxjvIpjlvWpuYWuccasSpfWxaGcC26Z55Q5IM/\nasPyic6/epl6wa5L5TaGoiKFuTS6QYS2JtEe3x1Bv/zi/99B8Rofkmkx0DJj\n0VlignFg5LpHINjWesqh3O0e/4ImcZzsE4ZExruvzdMlBMpzhP2iWkAy+qkw\n5NI+FkrbYvHgHmRSfqyrAFYoH5hSRSZ8Yk4ISK78F54JmDX6dzfjY9T+/qAy\n0guH\r\n=ZKgS\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "stringepsilon",
					"email": "stringepsilon@gmail.com"
				}
			],
			"_npmUser": {
				"name": "stringepsilon",
				"email": "stringepsilon@gmail.com"
			},
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/mini-create-react-context_0.4.0_1583137736569_0.21898387814911602"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		}
	},
	"time": {
		"created": "2019-04-05T22:16:24.287Z",
		"0.2.4": "2019-04-05T22:16:24.446Z",
		"modified": "2020-03-02T08:29:00.803Z",
		"0.3.0": "2019-04-05T22:30:18.464Z",
		"0.3.1": "2019-04-13T01:14:18.329Z",
		"0.3.2": "2019-04-13T01:16:35.643Z",
		"0.4.0": "2020-03-02T08:28:56.727Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "0.4.0"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"4f7960d8c86516c31d7c35c0106887c2\"",
			"fetched": 1600679296821
		}
	},
	"_distfiles": {
		"mini-create-react-context-0.2.4.tgz": {
			"url": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.2.4.tgz",
			"sha": "091fa6d441f6cca603cf29fef0b9df268e5fe99f",
			"registry": "npmjs"
		},
		"mini-create-react-context-0.3.0.tgz": {
			"url": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.3.0.tgz",
			"sha": "526d19ffac4943a0825f035d903c391ebe5e6c46",
			"registry": "npmjs"
		},
		"mini-create-react-context-0.3.2.tgz": {
			"url": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.3.2.tgz",
			"sha": "79fc598f283dd623da8e088b05db8cddab250189",
			"registry": "npmjs"
		},
		"mini-create-react-context-0.4.0.tgz": {
			"url": "https://registry.npmjs.org/mini-create-react-context/-/mini-create-react-context-0.4.0.tgz",
			"sha": "df60501c83151db69e28eac0ef08b4002efab040",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"mini-create-react-context-0.4.0.tgz": {
			"shasum": "df60501c83151db69e28eac0ef08b4002efab040"
		}
	},
	"_rev": "2-164b63754c2017dc",
	"_id": "mini-create-react-context",
	"readme": "# mini-create-react-context\n\n<p align=\"center\">\n<a href=\"https://packagephobia.now.sh/result?p=mini-create-react-context\">\n\t<img alt=\"npm install size\" src=\"https://packagephobia.now.sh/badge?p=mini-create-react-context\">\n</a>\n<a href=\"https://bundlephobia.com/result?p=mini-create-react-context@latest\">\n\t<img alt=\"npm bundle size\" src=\"https://img.shields.io/bundlephobia/min/mini-create-react-context/latest.svg?style=flat-square\">\n</a>\n<a href=\"https://www.npmjs.com/package/mini-create-react-context\">\n    <img alt=\"npm\" src=\"https://img.shields.io/npm/v/mini-create-react-context.svg?style=flat-square\">\n</a>\n</p>\n\n> (A smaller) Polyfill for the [React context API](https://github.com/reactjs/rfcs/pull/2)\n\n## Install\n\n```sh\nnpm install mini-create-react-context\n```\n\nYou'll need to also have `react` and `prop-types` installed.\n\n## API\n\n```js\nconst Context = createReactContext(defaultValue);\n/*\n\t<Context.Provider value={providedValue}>\n\t\t{children}\n\t</Context.Provider>\n\n\t...\n\n\t<Context.Consumer>\n\t\t{value => children}\n\t</Context.Consumer>\n*/\n```\n\n## Example\n\n```js\n// @flow\nimport React, { type Node } from 'react';\nimport createReactContext, { type Context } from 'mini-create-react-context';\n\ntype Theme = 'light' | 'dark';\n// Pass a default theme to ensure type correctness\nconst ThemeContext: Context<Theme> = createReactContext('light');\n\nclass ThemeToggler extends React.Component<\n  { children: Node },\n  { theme: Theme }\n> {\n  state = { theme: 'light' };\n  render() {\n    return (\n      // Pass the current context value to the Provider's `value` prop.\n      // Changes are detected using strict comparison (Object.is)\n      <ThemeContext.Provider value={this.state.theme}>\n        <button\n          onClick={() => {\n            this.setState(state => ({\n              theme: state.theme === 'light' ? 'dark' : 'light'\n            }));\n          }}\n        >\n          Toggle theme\n        </button>\n        {this.props.children}\n      </ThemeContext.Provider>\n    );\n  }\n}\n\nclass Title extends React.Component<{ children: Node }> {\n  render() {\n    return (\n      // The Consumer uses a render prop API. Avoids conflicts in the\n      // props namespace.\n      <ThemeContext.Consumer>\n        {theme => (\n          <h1 style={{ color: theme === 'light' ? '#000' : '#fff' }}>\n            {this.props.children}\n          </h1>\n        )}\n      </ThemeContext.Consumer>\n    );\n  }\n}\n```\n\n## Compatibility\n\nThis package only \"ponyfills\" the `React.createContext` API, not other unrelated React 16+ APIs. If you are using a version of React <16, keep in mind that you can only use features available in that version.\n\nFor example, you cannot pass children types aren't valid pre React 16:\n\n```js\n<Context.Provider>\n  <div/>\n  <div/>\n</Context.Provider>\n```\n\nIt will throw `A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.` because `<Context.Provider>` can only receive a single child element. To fix the error just wrap everyting in a single `<div>`:\n\n```js\n<Context.Provider>\n  <div>\n    <div/>\n    <div/>\n  </div>\n</Context.Provider>\n```\n\n## Size difference to the original:\n|            | original | **mini**\n|------------|----------|-----\n|install size| [**50 kB**](https://packagephobia.now.sh/result?p=create-react-context) | [140 kB](https://packagephobia.now.sh/result?p=mini-create-react-context)\n|minified    | [3.3 kB](https://bundlephobia.com/result?p=create-react-context) | [**2.3kB**](https://bundlephobia.com/result?p=mini-create-react-context)\n|minzip      | 1.3 kB   | **1.0kB**"
}