{"id":19168587,"url":"https://github.com/oneted11/react-cdn-scrimba","last_synced_at":"2026-05-15T12:33:47.547Z","repository":{"id":123735100,"uuid":"493957640","full_name":"Oneted11/react-cdn-scrimba","owner":"Oneted11","description":"using react as an add-on","archived":false,"fork":false,"pushed_at":"2022-05-19T09:25:09.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T23:28:45.831Z","etag":null,"topics":["javascript","react","react-cdn","scrimba-react"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Oneted11.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-19T07:02:23.000Z","updated_at":"2022-05-19T08:32:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"72722dfb-ec6e-4bdb-b095-f8c76c365f40","html_url":"https://github.com/Oneted11/react-cdn-scrimba","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Oneted11/react-cdn-scrimba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Freact-cdn-scrimba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Freact-cdn-scrimba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Freact-cdn-scrimba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Freact-cdn-scrimba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oneted11","download_url":"https://codeload.github.com/Oneted11/react-cdn-scrimba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oneted11%2Freact-cdn-scrimba/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265791732,"owners_count":23829165,"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":["javascript","react","react-cdn","scrimba-react"],"created_at":"2024-11-09T09:43:10.132Z","updated_at":"2026-05-15T12:33:42.512Z","avatar_url":"https://github.com/Oneted11.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Scrimba react course\n\n# using react and jsx only using CDN\n\nuseful for when you dont want a toolchain and just want to add components real quick to an already exsisting html css project\n\n## index.html\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n    \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" /\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" /\u003e\n    \u003ctitle\u003eReact-CDN-Test\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript\n      crossorigin\n      src=\"https://unpkg.com/react@18/umd/react.development.js\"\n    \u003e\u003c/script\u003e\n    \u003cscript\n      crossorigin\n      src=\"https://unpkg.com/react-dom@18/umd/react-dom.development.js\"\n    \u003e\u003c/script\u003e\n    \u003cscript src=\"https://unpkg.com/babel-standalone@6/babel.min.js\"\u003e\u003c/script\u003e\n    \u003cdiv id=\"root\"\u003e\u003c/div\u003e\n    \u003cscript crossorigin=\"anonymous\" type=\"text/babel\" src=\"./index.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## index.js\n\n```jsx\nReactDOM.render(\n  \u003carticle\u003e\n    \u003ch1\u003eHEllo there \u003c/h1\u003e\n    \u003ch1 style={{ color: \"red\" }}\u003e GeneRAl KenoBI\u003c/h1\u003e\n  \u003c/article\u003e,\n  document.getElementById(\"root\")\n);\n```\n\n# Components and Props\n\nThis is a thing that is possible apparently in this type of setup :exploding_head:\n\n## index.js\n\n```js\n//components\nfunction P1(props) {\n  return \u003ch1 style={{ color: \"green\" }}\u003e{props.text}\u003c/h1\u003e;\n}\nfunction P2(props) {\n  return \u003ch1 style={{ color: \"red\" }}\u003e {props.text}\u003c/h1\u003e;\n}\n\n//composing components into page\nReactDOM.render(\n  \u003carticle\u003e\n    \u003cP1 text=\"heLLO tHERe\" /\u003e\n    \u003cP2 text=\"gENErAL keNObi\" /\u003e\n  \u003c/article\u003e,\n  document.getElementById(\"root\")\n);\n```\n\n# creating an element using pure js\n\n```js\n//create h1\nlet myhead = document.createElement(\"h1\");\n//add text\nmyhead.textContent = \"Hello, React!\";\n//add class\nmyhead.classList.add(\"header\");\n//select root\nlet root = document.getElementById(\"root\");\n//append to root div\nroot.appendChild(myhead);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneted11%2Freact-cdn-scrimba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneted11%2Freact-cdn-scrimba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneted11%2Freact-cdn-scrimba/lists"}