{"id":16609657,"url":"https://github.com/WebReflection/uland","last_synced_at":"2025-10-29T17:30:22.645Z","repository":{"id":55582719,"uuid":"273783484","full_name":"WebReflection/uland","owner":"WebReflection","description":"A µhtml take at neverland","archived":false,"fork":false,"pushed_at":"2022-05-23T07:37:43.000Z","size":263,"stargazers_count":108,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-14T08:21:26.097Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebReflection.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":"2020-06-20T21:00:03.000Z","updated_at":"2024-03-22T14:34:05.000Z","dependencies_parsed_at":"2022-08-15T03:40:16.005Z","dependency_job_id":null,"html_url":"https://github.com/WebReflection/uland","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fuland","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fuland/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fuland/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebReflection%2Fuland/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebReflection","download_url":"https://codeload.github.com/WebReflection/uland/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857402,"owners_count":16556064,"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-12T01:29:11.315Z","updated_at":"2025-10-29T17:30:22.150Z","avatar_url":"https://github.com/WebReflection.png","language":"JavaScript","readme":"# 🦄 \u003cem\u003eµ\u003c/em\u003eland\n\n[![CSP strict](https://webreflection.github.io/csp/strict.svg)](https://webreflection.github.io/csp/#-csp-strict)\n\n![tiny island](./uland-head.jpg)\n\n\u003csup\u003e**Social Media Photo by [Ben Klea](https://unsplash.com/@benkleaphoto) on [Unsplash](https://unsplash.com/)**\u003c/sup\u003e\n\n*micro* land, or *unicorn* land, is a [µhtml](https://github.com/WebReflection/uhtml#readme) take at [neverland](https://github.com/WebReflection/neverland/#readme).\n\n\n### 📣 Community Announcement\n\nPlease ask questions in the [dedicated discussions repository](https://github.com/WebReflection/discussions), to help the community around this project grow ♥\n\n---\n\nSame API, except the exports are `{Component, render, html, svg}`, where `Component` is a function you can use either as `new Component(...)` or just `Component(...)` which is the equivalent of _neverland_ default export.\n\nThis module exports same utilities via `uland/async`, which is based on `uhooks-dom/async` for asynchronous hooks.\n\n\n### Announcement\n\nAre you looking for something even more similar to *React*? Then don't miss [🐪 kaboobie](https://github.com/WebReflection/kaboobie/#readme) out!\n\nAre you looking for *SSR* components? Then check [🦄 µland-ssr](https://github.com/WebReflection/uland-ssr#readme) out!\n\n\n## API\n\nThe concept is exactly the same as the _neverland_ one, the `render(...)` accepts a node to render, and either a *component* or a *callback* that returns some content.\n\n[Live demo](https://codepen.io/WebReflection/pen/dyGvNdg?editors=0010).\n\n```js\nimport {Component, render, html, useState} from 'uland';\n\nconst Counter = Component((initialState) =\u003e {\n  const [count, setCount] = useState(initialState);\n  return html`\n  \u003cbutton onclick=${() =\u003e setCount(count + 1)}\u003e\n    Count: ${count}\n  \u003c/button\u003e`;\n});\n\n// basic example, show two independent counters\nrender(document.body, () =\u003e html`\n  \u003cdiv\u003e\n    A bounce of counters.\u003chr\u003e\n    ${Counter(0)} ${Counter(1)}\n  \u003c/div\u003e\n`);\n```\n\nPlease [check neverland](https://github.com/WebReflection/neverland/#concept) to know more about this module usage.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebReflection%2Fuland","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWebReflection%2Fuland","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebReflection%2Fuland/lists"}