{"id":20284180,"url":"https://github.com/clebert/snugjs-html","last_synced_at":"2025-03-04T03:41:59.206Z","repository":{"id":57906514,"uuid":"527464027","full_name":"clebert/snugjs-html","owner":"clebert","description":"Create HTML elements and fragments using JSX.","archived":false,"fork":false,"pushed_at":"2023-07-19T21:18:45.000Z","size":1386,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T16:05:08.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/clebert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-22T07:51:14.000Z","updated_at":"2022-11-02T17:09:34.000Z","dependencies_parsed_at":"2023-02-08T08:46:38.618Z","dependency_job_id":null,"html_url":"https://github.com/clebert/snugjs-html","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsnugjs-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsnugjs-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsnugjs-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clebert%2Fsnugjs-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clebert","download_url":"https://codeload.github.com/clebert/snugjs-html/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241780465,"owners_count":20019058,"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-11-14T14:18:37.274Z","updated_at":"2025-03-04T03:41:59.187Z","avatar_url":"https://github.com/clebert.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @snugjs/html\n\n\u003e Create HTML elements and fragments using JSX.\n\n## Installation\n\n```\nnpm install @snugjs/html\n```\n\n## Hello World\n\n```jsx\nimport {createElement} from '@snugjs/html';\n\ndocument.body.appendChild(\u003ch1\u003eHello, World!\u003c/h1\u003e);\ndocument.body.appendChild(createElement('h1', {}, 'Hello, World!'));\n```\n\n## `\u003cHello /\u003e` Element Factory\n\n```jsx\nimport {createElement, createElementFactory} from '@snugjs/html';\n\nconst Hello = createElementFactory('h1', (element, childNodes) =\u003e {\n  element.replaceChildren('Hello, ', ...childNodes, '!');\n});\n\ndocument.body.appendChild(\u003cHello\u003eWorld\u003c/Hello\u003e);\n```\n\n## TypeScript Configuration\n\n```json\n{\n  \"jsx\": \"react\",\n  \"jsxFactory\": \"createElement\",\n  \"jsxFragmentFactory\": \"createFragment\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebert%2Fsnugjs-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclebert%2Fsnugjs-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclebert%2Fsnugjs-html/lists"}