{"id":13400961,"url":"https://github.com/vjeux/react-xtags","last_synced_at":"2025-05-15T08:32:39.972Z","repository":{"id":8967941,"uuid":"10709582","full_name":"vjeux/react-xtags","owner":"vjeux","description":"Using React to implement xtags","archived":false,"fork":false,"pushed_at":"2013-06-16T05:02:12.000Z","size":144,"stargazers_count":49,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T17:44:31.799Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vjeux.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}},"created_at":"2013-06-15T17:29:16.000Z","updated_at":"2023-03-08T03:17:56.000Z","dependencies_parsed_at":"2022-09-06T01:11:57.322Z","dependency_job_id":null,"html_url":"https://github.com/vjeux/react-xtags","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjeux%2Freact-xtags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjeux%2Freact-xtags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjeux%2Freact-xtags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vjeux%2Freact-xtags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vjeux","download_url":"https://codeload.github.com/vjeux/react-xtags/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254304645,"owners_count":22048446,"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-07-30T19:00:57.362Z","updated_at":"2025-05-15T08:32:39.131Z","avatar_url":"https://github.com/vjeux.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"react-xtags\n===========\n\nUsing [x-tags](http://www.x-tags.org/) from Mozilla, we can write custom tags within the DOM and have them being rendered in [React](http://facebook.github.io/react/).\n\nRead [this blog article for more information](http://blog.vjeux.com/2013/javascript/custom-components-react-x-tags.html).\n\n\n```html\n\u003cscript src=\"http://fb.me/react-0.3.2.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"http://fb.me/JSXTransformer-0.3.2.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://rawgithub.com/vjeux/react-xtags/master/x-tag-components.js\"\u003e\u003c/script\u003e\n\n\u003c!-- x-react is the bridge between x-tags and React --\u003e\n\u003cscript src=\"https://rawgithub.com/vjeux/react-xtags/master/x-react.js\"\u003e\u003c/script\u003e\n\n\u003cscript type=\"text/jsx\"\u003e\n/** @jsx React.DOM */\nvar Hello = React.createClass({\n  render: function() {\n    return \u003cdiv\u003e{'Hello ' + this.props.name}\u003c/div\u003e;\n  }\n});\n\nxreact.register('x-hello', Hello);\n\u003c/script\u003e\n\n\u003cx-hello name=\"World\"\u003e\u003c/x-hello\u003e\n```\n\nThe rendered DOM tree lives in the shadow DOM. This lets us manipulate both the `\u003cx-hello\u003e` component as well as the rendered `\u003cdiv\u003e` using Web Inspector.\n\n![image](https://f.cloud.github.com/assets/197597/658657/b58f239c-d5ff-11e2-887e-88f845938805.png)\n\nAnytime you modify the `\u003cx-hello\u003e` component, whether it is in the inspector or in Javascript with the regular DOM API, React is going to be invoked to update the rendered version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjeux%2Freact-xtags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvjeux%2Freact-xtags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjeux%2Freact-xtags/lists"}