{"id":15386620,"url":"https://github.com/pixelscommander/quickcontext","last_synced_at":"2025-08-01T07:35:23.097Z","repository":{"id":143904186,"uuid":"208100791","full_name":"PixelsCommander/QuickContext","owner":"PixelsCommander","description":"ContextAPI state management made Easy. Less code more performance.","archived":false,"fork":false,"pushed_at":"2019-10-14T20:20:42.000Z","size":186,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-30T08:26:12.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PixelsCommander.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-12T16:55:32.000Z","updated_at":"2019-11-08T16:26:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"c84ca9c6-9cc6-470a-aaac-458b4f2a8d19","html_url":"https://github.com/PixelsCommander/QuickContext","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FQuickContext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FQuickContext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FQuickContext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PixelsCommander%2FQuickContext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PixelsCommander","download_url":"https://codeload.github.com/PixelsCommander/QuickContext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226196,"owners_count":20904464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T14:49:58.721Z","updated_at":"2025-04-04T17:46:43.503Z","avatar_url":"https://github.com/PixelsCommander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QuickContext\n\n\u003e ContextAPI state management made easy\n\n[![NPM](https://img.shields.io/npm/v/quickcontext.svg)](https://www.npmjs.com/package/quickcontext) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save quickcontext\n```\n\n## Usage\nChanging values in a context as simple as:\n```tsx\nthis.context.store.value = newValue;\n```\n\nYour context module:\n```tsx\nimport {createContext} from 'quickcontext';\n\nconst eContext = createContext({\n  clicks: 0,\n});\n\nexport const Context = eContext.Context;\nexport const Consumer = eContext.Consumer;\nexport const Provider = eContext.Provider;\n```\n\nYour app:\n```tsx\nimport {Provider} from './Context';\nimport {Component} from './Component';\n\nexport const App = () =\u003e\n  \u003cProvider\u003e\n    \u003cComponent/\u003e\n  \u003c/Provider\u003e\n```\n\nYour component:\n```tsx\nimport React from 'react';\nimport {Context} from './Context';\n\nexport class Component extends React.Component {\n  click = () =\u003e this.context.store.clicks = Math.random()\n\n  render() {\n    return \u003cReact.Fragment\u003e\n      \u003cbutton onClick={this.click}/\u003e\n      Clicked: {this.context.store.clicks}\u003cbr/\u003e\n    \u003c/React.Fragment\u003e\n  }\n}\n\nComponent.contextType = Context;\n```\n\nFor more information have a look at example.\n\n## License\n\nMIT © [PixelsCommander](https://github.com/PixelsCommander)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelscommander%2Fquickcontext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelscommander%2Fquickcontext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelscommander%2Fquickcontext/lists"}