{"id":19553825,"url":"https://github.com/johnsi15/example-react-jsx-esm","last_synced_at":"2026-05-13T01:02:46.060Z","repository":{"id":232589591,"uuid":"632134220","full_name":"johnsi15/example-react-jsx-esm","owner":"johnsi15","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-24T19:44:39.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T07:32:27.726Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnsi15.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-24T19:29:47.000Z","updated_at":"2023-04-24T19:44:43.000Z","dependencies_parsed_at":"2024-04-10T14:13:13.158Z","dependency_job_id":"a19cf2a3-185c-412d-9a1e-7f73c657f312","html_url":"https://github.com/johnsi15/example-react-jsx-esm","commit_stats":null,"previous_names":["johnsi15/example-react-jsx-esm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnsi15/example-react-jsx-esm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsi15%2Fexample-react-jsx-esm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsi15%2Fexample-react-jsx-esm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsi15%2Fexample-react-jsx-esm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsi15%2Fexample-react-jsx-esm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnsi15","download_url":"https://codeload.github.com/johnsi15/example-react-jsx-esm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnsi15%2Fexample-react-jsx-esm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32963176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"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":"2024-11-11T04:24:49.462Z","updated_at":"2026-05-13T01:02:46.034Z","avatar_url":"https://github.com/johnsi15.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example react ESM with esm.sh\n\nThe script has to be of type module ` \u003cscript type=\"module\" src=\"./main.js\"\u003e\u003c/script\u003e`\n\n# [CDN](https://esm.sh/)\n\n# [ESM](https://lenguajejs.com/javascript/modulos/que-es-esm/)\n\n```javascript\nimport React from \"https://esm.sh/react@18.2.0\"\nimport ReactDOM from \"https://esm.sh/react-dom@18.2.0/client\"\n\nconst appElement = document.getElementById('app')\n\nconst root = ReactDOM.createRoot(appElement)\n\nconst el = React.createElement(\"section\",{class:\"container\"},React.createElement(\"h3\",null,\"Hello world\"));\n\nroot.render(el)\n\n```\n\n```javascript\n// main.js\nimport React from 'https://esm.sh/react@18.2.0'\nimport ReactDOM from 'https://esm.sh/react-dom@18.2.0/client'\n\nimport App from './App.js'\n\nconst el = React.createElement(App, null)\n\nReactDOM.createRoot(document.getElementById('app')).render(el)\n\n```\n\n```javascript\n// App.js\nimport React from 'https://esm.sh/react@18.2.0'\n\nfunction HolaMundo() {\n  return React.createElement(\n    'div',\n    { className: 'hola' },\n    React.createElement('h3', null, 'Hola mundo')\n  )\n}\n\nexport default HolaMundo\n\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsi15%2Fexample-react-jsx-esm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnsi15%2Fexample-react-jsx-esm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnsi15%2Fexample-react-jsx-esm/lists"}