{"id":16010396,"url":"https://github.com/swiip/power-react","last_synced_at":"2025-07-16T11:38:36.034Z","repository":{"id":66361734,"uuid":"133956337","full_name":"Swiip/power-react","owner":"Swiip","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-18T16:26:48.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T10:52:39.529Z","etag":null,"topics":[],"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/Swiip.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":"2018-05-18T13:13:53.000Z","updated_at":"2018-10-30T22:40:16.000Z","dependencies_parsed_at":"2023-02-21T18:15:16.736Z","dependency_job_id":null,"html_url":"https://github.com/Swiip/power-react","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/Swiip%2Fpower-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swiip%2Fpower-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swiip%2Fpower-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Swiip%2Fpower-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Swiip","download_url":"https://codeload.github.com/Swiip/power-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280176,"owners_count":20912965,"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-10-08T13:05:39.754Z","updated_at":"2025-04-05T02:40:54.908Z","avatar_url":"https://github.com/Swiip.png","language":"JavaScript","readme":"# Power React\n\nWrapper around React + Recompose + Styled Components + HyperX in order to get a homogeneous API.\n\nOhh... Its 30 LoC :)\n\n# Example\n\n```javascript\nimport {\n  html,\n  css,\n  component,\n  withState,\n  withHandlers,\n  withMarkup,\n  withStyle\n} from \"../lib\";\n\nconst Button = component(\n  withState(\"name\", \"setName\", \"World\"),\n  withHandlers({\n    toggle: ({ name, setName }) =\u003e () =\u003e\n      setName(name === \"World\" ? \"Swiip\" : \"World\")\n  }),\n  withStyle(\n    ({ name }) =\u003e css`\n      color: ${name === \"World\" ? \"black\" : \"red\"};\n    `\n  ),\n  withMarkup(\n    ({ name, toggle, className }) =\u003e html`\n      \u003cbutton className=${className} onClick=${toggle}\u003e\n        Hello \u003c${Green}\u003e${name}\u003c/${Green}\u003e!\n      \u003c/button\u003e\n    `\n  )\n);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiip%2Fpower-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiip%2Fpower-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiip%2Fpower-react/lists"}