{"id":20629779,"url":"https://github.com/pb2204/html2react","last_synced_at":"2025-06-22T17:03:01.474Z","repository":{"id":201059337,"uuid":"706862797","full_name":"PB2204/Html2React","owner":"PB2204","description":"A simple Visual Studio Code plugin that converts html text to React JSX.","archived":false,"fork":false,"pushed_at":"2023-10-26T06:16:34.000Z","size":11527,"stargazers_count":12,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T18:18:01.565Z","etag":null,"topics":["collaborate","communityexchange","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","hacktoberfest-accepted","html2react","jetbrains","microsoft","microsoftvisualstudio","pabitra-banerjee","student-vscode"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=PabitraBanerjee.html2react","language":"JavaScript","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/PB2204.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2023-10-18T19:02:40.000Z","updated_at":"2024-07-25T02:54:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"9008292e-284c-42fc-983e-cd9b4259b6f9","html_url":"https://github.com/PB2204/Html2React","commit_stats":null,"previous_names":["pb2204/html2react"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FHtml2React","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FHtml2React/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FHtml2React/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PB2204%2FHtml2React/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PB2204","download_url":"https://codeload.github.com/PB2204/Html2React/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249125998,"owners_count":21216705,"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":["collaborate","communityexchange","ghdesktop","github","github-campus-experts","github-codespaces","github-pages","gitkraken","gitlens","hacktoberfest","hacktoberfest-accepted","html2react","jetbrains","microsoft","microsoftvisualstudio","pabitra-banerjee","student-vscode"],"created_at":"2024-11-16T14:06:01.972Z","updated_at":"2025-04-15T18:18:09.490Z","avatar_url":"https://github.com/PB2204.png","language":"JavaScript","readme":"# Convert HTML to React JSX\n\nA simple Visual Studio Code plugin that converts html text to React JSX.\n\nJust `ctrl + shift + P` -\u003e `Convert HTML to React JSX` in the document you want to edit and run it.\n\n\n![Html2React](https://github.com/PB2204/Html2React/assets/120979437/7a5162cc-a1c2-4b83-b6d1-ab6fedb69dd9)\n\n## How does it work\n\nIt simply replaces html tags with React ones.\n\nHere's the current list:\n\n```js\nvar mapObj = {\n  \"class=\": \"className=\",\n  \"for=\": \"htmlFor=\",\n  \"-rule\": \"Rule\",\n  \"stroke-l\": \"strokeL\",\n  \"stroke-w\": \"strokeW\",\n  \"\u003c!--\": \"{/*\",\n  \"--\u003e\": \"*/}\",\n  tabindex: \"tabIndex\",\n};\n```\n\n[Open a pull request](https://github.com/PB2204/Html2React/compare) to add missing rules.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fhtml2react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb2204%2Fhtml2react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb2204%2Fhtml2react/lists"}