{"id":20690794,"url":"https://github.com/lemol/hyperapp-react-hooks","last_synced_at":"2025-07-27T16:34:53.473Z","repository":{"id":146080287,"uuid":"155377439","full_name":"lemol/hyperapp-react-hooks","owner":"lemol","description":"Trying to build Hyperapp syntax with simple react hooks","archived":false,"fork":false,"pushed_at":"2019-12-30T16:03:43.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-26T20:07:39.824Z","etag":null,"topics":["hyperapp","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/github/lemol/hyperapp-react-hooks","language":"HTML","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/lemol.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,"zenodo":null}},"created_at":"2018-10-30T11:55:52.000Z","updated_at":"2019-12-30T16:03:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"7bd3bb75-4f0f-4224-9d7b-1b1b989697f7","html_url":"https://github.com/lemol/hyperapp-react-hooks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lemol/hyperapp-react-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fhyperapp-react-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fhyperapp-react-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fhyperapp-react-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fhyperapp-react-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemol","download_url":"https://codeload.github.com/lemol/hyperapp-react-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fhyperapp-react-hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267387258,"owners_count":24079203,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hyperapp","react","react-hooks"],"created_at":"2024-11-16T23:14:25.291Z","updated_at":"2025-07-27T16:34:53.466Z","avatar_url":"https://github.com/lemol.png","language":"HTML","readme":"# hyperapp-react-hook\n\nTrying to build [Hyperapp](https://github.com/jorgebucaran/hyperapp) syntax with simple react hooks.\n\n[![Edit 6joor0no6w](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/6joor0no6w)\n\n## Use\n\n```bash\nyarn         # OR npm install\nyarn start   # OR npm start\n```\n\n## Result\n\nWith `create-react-app`, based on the [Hyperapp getting started counter example](https://github.com/jorgebucaran/hyperapp#getting-started), just:\n\n1. Import `React` instead of `h`.\n\n2. Replace `onclick` to `onClick`.\n\n```javascript\nimport { React, app } from \"./hyperapp\"\n\nconst state = {\n  count: 0\n}\n\nconst actions = {\n  down: value =\u003e state =\u003e ({ count: state.count - value }),\n  up: value =\u003e state =\u003e ({ count: state.count + value })\n}\n\nconst view = (state, actions) =\u003e (\n  \u003cdiv\u003e\n    \u003ch1\u003e{state.count}\u003c/h1\u003e\n    \u003cbutton onClick={() =\u003e actions.down(1)}\u003e-\u003c/button\u003e\n    \u003cbutton onClick={() =\u003e actions.up(1)}\u003e+\u003c/button\u003e\n  \u003c/div\u003e\n)\n\napp(state, actions, view, document.body);\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemol%2Fhyperapp-react-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemol%2Fhyperapp-react-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemol%2Fhyperapp-react-hooks/lists"}