{"id":18226949,"url":"https://github.com/sliptype/react-pure","last_synced_at":"2026-05-09T16:42:12.045Z","repository":{"id":98500001,"uuid":"138820831","full_name":"sliptype/react-pure","owner":"sliptype","description":"❄️ An example of managing state using Purescript in a React app","archived":false,"fork":false,"pushed_at":"2018-09-17T00:07:24.000Z","size":236,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T15:38:42.906Z","etag":null,"topics":["functional-programming","purescript","react"],"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/sliptype.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-06-27T02:43:58.000Z","updated_at":"2021-01-25T02:11:32.000Z","dependencies_parsed_at":"2023-06-28T10:45:47.899Z","dependency_job_id":null,"html_url":"https://github.com/sliptype/react-pure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sliptype/react-pure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sliptype%2Freact-pure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sliptype%2Freact-pure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sliptype%2Freact-pure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sliptype%2Freact-pure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sliptype","download_url":"https://codeload.github.com/sliptype/react-pure/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sliptype%2Freact-pure/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001651,"owners_count":26083147,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["functional-programming","purescript","react"],"created_at":"2024-11-04T05:04:08.719Z","updated_at":"2025-10-09T15:38:44.183Z","avatar_url":"https://github.com/sliptype.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-pure\n\nThis is an example of using Purescript to handle business logic in a React + Redux application. It was created with `create-react-app`. It uses `purs-loader` to incorporate Purescript compilation into the webpack build.\n\n# Advantages\n* All the benefits of static-typing, purity, and controlled effects\n* Redux debug tools\n* JS ecosystem and tooling\n\n# Setup\nThe actions, state, and reducers are written in Purescript. They can be found in the `state` directory.\nConnecting this to Redux is done in `state/store.js`:\n * `reducer` catches the initialization case, where `state` is undefined, by calling the `rootReducer` with an `Initial` value.\n * `middleware` intercepts incoming actions to assign them a name (following \"flux-standard-action\")\n\n# Dispatching\nEach smart component has a corresponding `.purs` file that will handle mapping the state and dispatch to props. An example is `components/App.purs`, where the entire state is exposed as props and two actions are exposed to dispatch.\nAction creators would be placed in their corresponding `actions.purs` file and they could be invoked inside `mapDispatchToProps`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsliptype%2Freact-pure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsliptype%2Freact-pure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsliptype%2Freact-pure/lists"}