{"id":13682408,"url":"https://github.com/purescript-react/purescript-react-basic","last_synced_at":"2026-01-11T13:31:24.385Z","repository":{"id":28110445,"uuid":"116311317","full_name":"purescript-react/purescript-react-basic","owner":"purescript-react","description":"An opinionated set of bindings to the React library, optimizing for the most basic use cases","archived":false,"fork":false,"pushed_at":"2025-04-27T10:13:05.000Z","size":1226,"stargazers_count":288,"open_issues_count":11,"forks_count":40,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-10-22T21:56:34.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pursuit.purescript.org/packages/purescript-react-basic","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purescript-react.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-01-04T21:52:46.000Z","updated_at":"2025-10-03T04:52:44.000Z","dependencies_parsed_at":"2023-07-13T15:40:22.717Z","dependency_job_id":null,"html_url":"https://github.com/purescript-react/purescript-react-basic","commit_stats":null,"previous_names":["purescript-react/purescript-react-basic","lumihq/purescript-react-basic"],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-react/purescript-react-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purescript-react","download_url":"https://codeload.github.com/purescript-react/purescript-react-basic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28302004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T11:18:18.743Z","status":"ssl_error","status_checked_at":"2026-01-11T11:07:56.842Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-02T13:01:45.636Z","updated_at":"2026-01-11T13:31:24.363Z","avatar_url":"https://github.com/purescript-react.png","language":"PureScript","readme":"# purescript-react-basic\n\n[![Build Status](https://travis-ci.org/lumihq/purescript-react-basic.svg?branch=main)](https://travis-ci.org/lumihq/purescript-react-basic)\n\nThere's a brief section on getting started below. For a more complete guide, check out the React Basic ~[docs](https://react-basic-starter.github.io/)! (work in progress)~ _(sorry, not sure when the docs will be done but here's a \"real world\" example app which is a great starting point! [jonasbuntinx/purescript-react-realworld](https://github.com/jonasbuntinx/purescript-react-realworld) -- I also recommend the [PureScript Discourse forum](https://discourse.purescript.org/search?q=react-basic) for specific questions, and am usually fairly responsive to blocking issues here on GitHub, including the repositories below. Finally, check out the [purescript-cookbook](https://github.com/JordanMartinez/purescript-cookbook/tree/master/recipes) repo for small examples of specific use cases, like `TextFieldsReactHooks`.)_\n\n## Getting Started\n\nThis library contains the core types and tools used by the rest of the React Basic ecosystem. To use React Basic in your applications you'll also need to choose one or more _implementations_ as well as a target environment!\n\n_Note: The Hooks and Classic implementations can both be used in the same project_\n\nImplementations:\n\n- [`react-basic-hooks`](https://github.com/spicydonuts/purescript-react-basic-hooks)\n  - PureScript types for building components using React hooks, as well as creating custom hooks.\n- [`react-basic-classic`](https://github.com/lumihq/purescript-react-basic-classic) _(this implementation was previously included in the `React.Basic` module)_\n  - PureScript types for the more traditional class-based React API. Very similar to the Reason-React API.\n\nEnvironments:\n\n- [`react-basic-dom`](https://github.com/lumihq/purescript-react-basic-dom)\n- [`react-basic-native`](https://github.com/f-f/purescript-react-basic-native)\n\nFor example, to use the `react-basic` hooks implementation for web development in a `spago` app:\n\n```sh\nnpm i -S react react-dom\nspago install react-basic react-basic-dom react-basic-hooks\n```\n\nOr using `bower`:\n\n```sh\nnpm i -S react react-dom\nbower i -S purescript-react-basic purescript-react-basic-dom purescript-react-basic-hooks\n```\n\n## Upgrading from React Basic v14\n\nThe `React.Basic.DOM` modules have been moved to [`react-basic-dom`](https://github.com/lumihq/purescript-react-basic-dom). This doesn't require any code changes, but you will need to add this dependency to your projects.\n\nThe component implementation previously in `React.Basic` has been extracted to [`react-basic-classic`](https://github.com/lumihq/purescript-react-basic-classic), which now provides the `React.Basic.Classic` module. Just install that library and find/replace `^import\\sReact\\.Basic\\s` with `import React.Basic.Classic`.\n\nIf you were using the `React.Basic.Compat` module, that module has been moved to [`react-basic-compat`](https://github.com/lumihq/purescript-react-basic-compat).\n\nIf you were using [`react-basic-hooks`](https://github.com/spicydonuts/purescript-react-basic-hooks) exclusively everything should work as-is.\n\n## Where did the examples folder go?\n\nBecause this library no longer contains a specific implementation and the example structure contained a fair bit of boilerplate, they've been moved to the `react-basic-classic` repository, in the [`examples` folder](https://github.com/lumihq/purescript-react-basic-classic/tree/main/examples). In addtion, a consolidated documentation site (linked above) is being worked on. ","funding_links":[],"categories":["PureScript","UI"],"sub_categories":["React"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic/lists"}