{"id":22930134,"url":"https://github.com/serebano/bitbox-inferno-component","last_synced_at":"2025-04-01T16:46:07.121Z","repository":{"id":91365383,"uuid":"90007733","full_name":"serebano/bitbox-inferno-component","owner":"serebano","description":"bitbox inferno component","archived":false,"fork":false,"pushed_at":"2017-11-29T07:11:08.000Z","size":405,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T11:09:37.986Z","etag":null,"topics":["bitbox","inferno-component"],"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/serebano.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":"2017-05-02T08:08:39.000Z","updated_at":"2017-05-02T10:25:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"d590d8cb-8732-43de-b892-3cf061c1c6f8","html_url":"https://github.com/serebano/bitbox-inferno-component","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/serebano%2Fbitbox-inferno-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serebano%2Fbitbox-inferno-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serebano%2Fbitbox-inferno-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serebano%2Fbitbox-inferno-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serebano","download_url":"https://codeload.github.com/serebano/bitbox-inferno-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246673428,"owners_count":20815563,"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":["bitbox","inferno-component"],"created_at":"2024-12-14T10:20:43.234Z","updated_at":"2025-04-01T16:46:07.102Z","avatar_url":"https://github.com/serebano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bitbox-inferno-component\nhttps://serebano.github.io/bitbox-inferno-component/\n\n\n```js\n/** @jsx h */\nimport Component, { render } from \"bitbox-inferno-component\"\n\nconst Hello = [\n    function bit({ state, args }, { set, toUpper }) {\n        return {\n            value: state.name,\n            onInput: set(state.name, args[0].target.value(toUpper))\n        }\n    },\n    function box({ onInput, value }, h) {\n        return (\n            \u003csection\u003e\n                \u003ch3\u003eHello {value}!\u003c/h3\u003e\n                \u003cinput onInput={onInput} value={value} /\u003e\n            \u003c/section\u003e\n        )\n    }\n]\n\nconst Counter = [\n    function({ state }, { set, inc, dec }) {\n        return {\n            count: state.count(String),\n            inc: set(state.count, state.count(inc)),\n            dec: set(state.count, state.count(inc)),\n        }\n    },\n    function Counter({ count, inc, dec }, h) {\n        return (\n            \u003csection\u003e\n                \u003ch1\u003e{count}\u003c/h1\u003e\n                \u003cbutton onClick={inc}\u003e+ inc\u003c/button\u003e\n                \u003cbutton onClick={dec}\u003e- dec\u003c/button\u003e\n            \u003c/section\u003e\n        )\n    }\n]\n\nfunction App(props, h) {\n\treturn (\n\t\t\u003csection\u003e\n\t\t\t\u003cHello /\u003e\n\t\t\t\u003cCounter /\u003e\n\t\t\u003c/section\u003e\n\t)\n}\n\nrender(Component(App, {\n\tstate: {\n\t\tname: 'Scooby Doo',\n\t\tcount: 0\n\t}\n}), \"#root\")\n\n```\n\n```\nyarn install\nyarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserebano%2Fbitbox-inferno-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserebano%2Fbitbox-inferno-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserebano%2Fbitbox-inferno-component/lists"}