{"id":25863135,"url":"https://github.com/jpinho/svelte-react-sample-app","last_synced_at":"2025-10-27T08:52:07.326Z","repository":{"id":41254242,"uuid":"384748059","full_name":"jpinho/svelte-react-sample-app","owner":"jpinho","description":"Use React components inside a Svelte app","archived":false,"fork":false,"pushed_at":"2023-04-12T00:56:40.000Z","size":2167,"stargazers_count":55,"open_issues_count":2,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:52:07.167Z","etag":null,"topics":["material","material-ui","react","reactjs","svelte","sveltejs"],"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/jpinho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-07-10T16:55:46.000Z","updated_at":"2025-07-23T20:13:09.000Z","dependencies_parsed_at":"2023-08-13T02:34:03.412Z","dependency_job_id":null,"html_url":"https://github.com/jpinho/svelte-react-sample-app","commit_stats":null,"previous_names":["jpinho/svelte-react-sample-app"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jpinho/svelte-react-sample-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpinho%2Fsvelte-react-sample-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpinho%2Fsvelte-react-sample-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpinho%2Fsvelte-react-sample-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpinho%2Fsvelte-react-sample-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpinho","download_url":"https://codeload.github.com/jpinho/svelte-react-sample-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpinho%2Fsvelte-react-sample-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281241872,"owners_count":26467373,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["material","material-ui","react","reactjs","svelte","sveltejs"],"created_at":"2025-03-01T23:58:51.130Z","updated_at":"2025-10-27T08:52:07.298Z","avatar_url":"https://github.com/jpinho.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-react-kit sample app\n\n![svelte-react-kit sample app](docs/svelte.png)\n\nThis is just a sample app for the [svelte-react-kit](https://github.com/jpinho/svelte-react-kit) project.\n\n---\n\nUse React components inside Svelte apps.\n\nThis repo is the mirror of [RichHarris/react-svelte](https://github.com/Rich-Harris/react-svelte/blob/master/README.md) with some bonus given we also add MaterialUI to the mix here.\n\n```svelte\n\u003cscript\u003e\n  import Button from \"@material-ui/core/Button\";\n  import { ReactAdapter } from \"svelte-react-kit\";\n\u003c/script\u003e\n\n\u003cReactAdapter\n  el={Button}\n  class=\"mui-btn\"\n  children=\"Hello\"\n  variant=\"contained\"\n  color=\"primary\"\n  onClick={() =\u003e alert(\"hello world!\")}\n/\u003e\n\n\u003cstyle\u003e\n  /**\n   * Styling a React Component from within a Svelte Component.\n   */\n  :global(.mui-btn) {\n    margin: 20px;\n  }\n\u003c/style\u003e\n```\n\nCheck the live demo [here](https://svelte-react.surge.sh), and don't forget to see the [BlogPost: Using React Within Svelte Apps](https://jpepinho.medium.com/using-react-within-your-svelte-applications-3b1f2a75aefc).\n\n## Usage\n\nRight now there is no npm package that you can install.\nTo use this, simply copy/paste the `ReactAdapter` into your project and you are done.\nAdditionally, you may want to copy the rollup and typescript configurations so that you can have React and Svelte living side-by-side.\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpinho%2Fsvelte-react-sample-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpinho%2Fsvelte-react-sample-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpinho%2Fsvelte-react-sample-app/lists"}