{"id":13525252,"url":"https://github.com/matthewmueller/preact-socrates","last_synced_at":"2025-04-11T12:32:09.729Z","repository":{"id":57329574,"uuid":"53117941","full_name":"matthewmueller/preact-socrates","owner":"matthewmueller","description":"preact plugin for socrates.","archived":false,"fork":false,"pushed_at":"2016-04-04T15:34:38.000Z","size":6,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:59:41.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/matthewmueller.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-04T07:54:47.000Z","updated_at":"2023-02-15T19:22:06.000Z","dependencies_parsed_at":"2022-09-16T17:40:24.094Z","dependency_job_id":null,"html_url":"https://github.com/matthewmueller/preact-socrates","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/matthewmueller%2Fpreact-socrates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpreact-socrates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpreact-socrates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthewmueller%2Fpreact-socrates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthewmueller","download_url":"https://codeload.github.com/matthewmueller/preact-socrates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248401939,"owners_count":21097328,"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-08-01T06:01:17.155Z","updated_at":"2025-04-11T12:32:09.689Z","avatar_url":"https://github.com/matthewmueller.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\n# preact-socrates\n\n  [Preact](http://github.com/developit/preact) plugin for [socrates](http://github.com/matthewmueller/socrates).\n\n## Install\n\n```bash\nnpm install preact-socrates\n```\n\n## Example\n\n```js\nimport { render, h } from 'preact-socrates'\nimport Logger from 'redux-logger'\nimport Socrates from 'socrates'\n\n/**\n * Create our virtual dom tree\n */\n\nconst Home = ({ dispatch, greeting }) =\u003e (\n  \u003cdiv class='home'\u003e\n    \u003ch2\u003e{ greeting }\u003c/h2\u003e\n    \u003cbutton onClick={(e) =\u003e dispatch('change greeting', { greeting: 'Hey bud' })}\u003eChange the greeting\u003c/button\u003e\n  \u003c/div\u003e\n)\n\n/**\n * Initialize our store\n */\n\nlet store = Socrates([\n  Logger()\n])\n\n/**\n * Initial application state\n */\n\nstore('boot', {\n  greeting: 'Welcome to the website, friend!'\n})\n\n/**\n * Render our virtual dom tree to the \u003cbody\u003e\n */\n\nrender(Home, store, document.body)\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fpreact-socrates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthewmueller%2Fpreact-socrates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthewmueller%2Fpreact-socrates/lists"}