{"id":44802280,"url":"https://github.com/purescript-react/purescript-react-basic-dom","last_synced_at":"2026-02-16T13:35:18.590Z","repository":{"id":37046439,"uuid":"267694172","full_name":"purescript-react/purescript-react-basic-dom","owner":"purescript-react","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-08T17:04:52.000Z","size":692,"stargazers_count":12,"open_issues_count":12,"forks_count":20,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-13T17:11:59.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pursuit.purescript.org/packages/purescript-react-basic-dom","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}},"created_at":"2020-05-28T20:52:07.000Z","updated_at":"2024-12-04T21:23:42.000Z","dependencies_parsed_at":"2023-08-26T02:50:02.749Z","dependency_job_id":null,"html_url":"https://github.com/purescript-react/purescript-react-basic-dom","commit_stats":null,"previous_names":["purescript-react/purescript-react-basic-dom","lumihq/purescript-react-basic-dom"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/purescript-react/purescript-react-basic-dom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-dom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-dom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-dom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-dom/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-dom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-react%2Fpurescript-react-basic-dom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29509202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"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":"2026-02-16T13:35:17.856Z","updated_at":"2026-02-16T13:35:18.585Z","avatar_url":"https://github.com/purescript-react.png","language":"PureScript","readme":"# purescript-react-basic-dom\n\n[![Build Status](https://github.com/lumihq/purescript-react-basic-dom/actions/workflows/ci.yml/badge.svg)](https://github.com/lumihq/purescript-react-basic-dom/actions/workflows/ci.yml)\n\u003ca href=\"https://pursuit.purescript.org/packages/purescript-react-basic-dom\"\u003e\n  \u003cimg src=\"https://pursuit.purescript.org/packages/purescript-react-basic-dom/badge\"\n       alt=\"React Basic DOM on Pursuit\"\u003e\n  \u003c/img\u003e\n\u003c/a\u003e\n\nThis library contains the [React Basic](https://github.com/lumihq/purescript-react-basic) DOM modules.\n\n## Example\n\n```purescript\nimport Prelude\n\nimport Data.Maybe (Maybe(..))\nimport Effect (Effect)\nimport Effect.Exception (throw)\nimport React.Basic.DOM.Client (createRoot, renderRoot)\nimport React.Basic.DOM (text)\nimport Web.DOM.NonElementParentNode (getElementById)\nimport Web.HTML (window)\nimport Web.HTML.HTMLDocument (toNonElementParentNode)\nimport Web.HTML.Window (document)\n\nmain :: Effect Unit\nmain = do\n  doc \u003c- document =\u003c\u003c window\n  root \u003c- getElementById \"root\" $ toNonElementParentNode doc\n  case root of\n    Nothing -\u003e throw \"Could not find container element\"\n    Just container -\u003e do\n      reactRoot \u003c- createRoot container\n      renderRoot reactRoot (text \"Hello\")\n```\n\nMore examples can be found in the [PureScript Cookbook](https://github.com/JordanMartinez/purescript-cookbook/tree/master/recipes).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-dom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-dom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurescript-react%2Fpurescript-react-basic-dom/lists"}