{"id":21569274,"url":"https://github.com/ecliptic/purescript-recompose","last_synced_at":"2025-04-10T14:06:14.338Z","repository":{"id":58225595,"uuid":"65050416","full_name":"ecliptic/purescript-recompose","owner":"ecliptic","description":"PureScript bindings for acdlite/recompose using purescript-react","archived":false,"fork":false,"pushed_at":"2017-03-07T18:27:50.000Z","size":58,"stargazers_count":11,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T15:56:41.769Z","etag":null,"topics":["javascript","purescript","react","recompose"],"latest_commit_sha":null,"homepage":null,"language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecliptic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-05T21:32:35.000Z","updated_at":"2018-02-17T12:24:25.000Z","dependencies_parsed_at":"2022-08-31T04:10:26.758Z","dependency_job_id":null,"html_url":"https://github.com/ecliptic/purescript-recompose","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/ecliptic%2Fpurescript-recompose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecliptic%2Fpurescript-recompose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecliptic%2Fpurescript-recompose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecliptic%2Fpurescript-recompose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecliptic","download_url":"https://codeload.github.com/ecliptic/purescript-recompose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248231850,"owners_count":21069415,"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":["javascript","purescript","react","recompose"],"created_at":"2024-11-24T11:09:03.055Z","updated_at":"2025-04-10T14:06:14.303Z","avatar_url":"https://github.com/ecliptic.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-recompose\n\n[![Latest release](https://img.shields.io/npm/v/purescript-recompose.svg)](https://github.com/ecliptic/purescript-recompose/releases)\n[![Latest release](https://img.shields.io/bower/v/purescript-recompose.svg)](https://github.com/ecliptic/purescript-recompose/releases)\n[![recompose channel on discord](https://img.shields.io/badge/discord-%23recompose%20%40%20reactiflux-61dafb.svg?style=flat-square)](https://discord.gg/2PCKqHc)\n[![Build Status](https://travis-ci.org/ecliptic/purescript-recompose.svg?branch=master)](https://travis-ci.org/ecliptic/purescript-recompose)\n\nA PureScript interface to [recompose](https://github.com/acdlite/recompose), a “React utility belt for functional components and higher-order components”. Recompose provides a great way to access React’s features in a more functional way, and it defines many useful higher-order components for easy composition.\n\n* [`purescript-recompose` API documentation](https://github.com/ecliptic/purescript-recompose/blob/master/docs/React/Recompose.md)\n* [Original `recompose` API documentation](https://github.com/acdlite/recompose/blob/master/docs/API.md)\n* [Example TodoMVC implementation](https://github.com/ecliptic/purescript-recompose-todomvc)\n\n## Usage\n\nInstall with bower:\n\n\t\t$ bower install --save purescript-recompose\n\nCompose with your existing components:\n\n```purescript\nnewTodo :: ReactClass Unit\nnewTodo = withHandlers handlers $ myComponent\n  where handlers = { addTodo }\n\ntype HandleAdd props eff =\n  { add :: String -\u003e Eff eff Unit | props } -\u003e\n  { target :: { value :: String } } -\u003e\n  Eff eff Unit\n\naddTodo :: forall props eff. HandleAdd props eff\naddTodo props event = props.add event.target.value\n```\n\nIn this example, `myComponent` is an existing React component. `newTodo` is the resulting component after wrapping it with recompose’s `withHandlers` higher-order component.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecliptic%2Fpurescript-recompose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecliptic%2Fpurescript-recompose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecliptic%2Fpurescript-recompose/lists"}