{"id":16897785,"url":"https://github.com/behnammodi/react-jet","last_synced_at":"2025-04-11T13:52:05.961Z","repository":{"id":65484783,"uuid":"164801770","full_name":"behnammodi/react-jet","owner":"behnammodi","description":"combine jetstate and jetemit for react","archived":false,"fork":false,"pushed_at":"2021-02-22T11:22:46.000Z","size":151,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T07:33:27.559Z","etag":null,"topics":["javascript","react","react-native"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/behnammodi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-09T06:23:18.000Z","updated_at":"2024-09-04T09:49:45.000Z","dependencies_parsed_at":"2023-01-25T18:46:17.125Z","dependency_job_id":null,"html_url":"https://github.com/behnammodi/react-jet","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Freact-jet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Freact-jet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Freact-jet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/behnammodi%2Freact-jet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/behnammodi","download_url":"https://codeload.github.com/behnammodi/react-jet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248411971,"owners_count":21099036,"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":["javascript","react","react-native"],"created_at":"2024-10-13T17:39:47.217Z","updated_at":"2025-04-11T13:52:05.942Z","avatar_url":"https://github.com/behnammodi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-jet\n\nReplace redux and react context\n\n[![NPM](https://nodei.co/npm/react-jet.png)](https://nodei.co/npm/react-jet/)\n\n[![install size](https://packagephobia.now.sh/badge?p=react-jet)](https://packagephobia.now.sh/result?p=react-jet) [![dependencies](https://david-dm.org/uxitten/react-jet.svg)](https://david-dm.org/uxitten/react-jet.svg)\n\n\u003ca href=\"https://www.npmjs.com/package/react-jet\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/react-jet.svg\" alt=\"Version\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/react-jet\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/l/react-jet.svg\" alt=\"License\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/react-jet\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/react-jet.svg\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\n# install\n\n```npm\nnpm install react-jet\n```\n\n# use\n\n## Initial state\n\n```javascript\nimport { initial } from 'react-jet';\n\ninitial([\n  {\n    name: 'time',\n    defaultValue: 2018\n  }\n]);\n```\n\n## Connect to components\n\n```javascript\nimport React from 'react';\nimport { connect } from 'react-jet';\n\nfunction DisplayTime(props) {\n  return \u003cdiv\u003e{props.time}\u003c/div\u003e;\n}\n\nexport default connect(\n  DisplayTime,\n  ['time']\n);\n```\n\n## Change state\n\n```javascript\nimport { state } from 'react-jet';\n\nstate.time = 2019;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Freact-jet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbehnammodi%2Freact-jet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbehnammodi%2Freact-jet/lists"}