{"id":24518482,"url":"https://github.com/dperrymorrow/mini-reactive","last_synced_at":"2025-04-14T10:02:31.535Z","repository":{"id":140595875,"uuid":"580930301","full_name":"dperrymorrow/mini-reactive","owner":"dperrymorrow","description":"a reactive component lib in under 45 lines of JS","archived":false,"fork":false,"pushed_at":"2024-09-04T16:58:38.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T23:12:38.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dperrymorrow.github.io/mini-reactive/","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/dperrymorrow.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":"2022-12-21T20:24:45.000Z","updated_at":"2024-11-18T05:44:35.000Z","dependencies_parsed_at":"2023-12-06T23:24:45.329Z","dependency_job_id":"6b9b11a9-7e07-4cec-800b-8bf38121778d","html_url":"https://github.com/dperrymorrow/mini-reactive","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/dperrymorrow%2Fmini-reactive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dperrymorrow%2Fmini-reactive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dperrymorrow%2Fmini-reactive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dperrymorrow%2Fmini-reactive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dperrymorrow","download_url":"https://codeload.github.com/dperrymorrow/mini-reactive/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860331,"owners_count":21173342,"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":"2025-01-22T01:42:48.285Z","updated_at":"2025-04-14T10:02:31.487Z","avatar_url":"https://github.com/dperrymorrow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mini-reactive\n\na reactive component lib in under 80 lines of JS!\n\n- [Working example here](https://dperrymorrow.github.io/mini-reactive/)\n- [Example component](https://github.com/dperrymorrow/mini-reactive/blob/main/Todos.js)\n\n## Example Component\n\n```javascript\nimport Component from \"./lib/Component.js\";\n\nexport default class MyComponent extends Component {\n  constructor() {\n    super(...arguments);\n    this.state = this.useState({\n      name: \"Dave\",\n    });\n  }\n\n  updateTitle(ev) {\n    this.state.title = ev.target.value;\n  }\n\n  render() {\n    return `\u003ch1\u003e${this.state.title}\u003c/h1\u003e\n      \u003cinput\n        type=\"text\"\n        value=\"${this.state.title}\"\n        data-on=\"input-\u003eupdateTitle\"\n      /\u003e`;\n  }\n}\n```\n\n## Example Usage\n\n```html\n\u003cdiv id=\"app\"\u003e\u003c/div\u003e\n\n\u003cscript type=\"module\"\u003e\n  import App from \"./MyComponent.js\";\n\n  const $root = document.getElementById(\"app\");\n  $root.innerHTML = new App($root).render();\n\u003c/script\u003e\n```\n\n## To run the example here\n\n1. clone this repo\n1. cd into directory\n1. `npm install`\n1. `npm run dev`\n1. go to localhost:8000 in your browser\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdperrymorrow%2Fmini-reactive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdperrymorrow%2Fmini-reactive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdperrymorrow%2Fmini-reactive/lists"}