{"id":15691603,"url":"https://github.com/r17x/babel-plugin-react-suspense","last_synced_at":"2025-04-30T15:22:04.471Z","repository":{"id":61401864,"uuid":"551288839","full_name":"r17x/babel-plugin-react-suspense","owner":"r17x","description":"a way to wrap component with React.Suspense as suspense prop.","archived":false,"fork":false,"pushed_at":"2025-03-12T06:54:08.000Z","size":656,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T15:21:49.244Z","etag":null,"topics":["babel-plugin","hacktoberfest","hacktoberfest-accepted","react","react-jsx","react-library","react-suspense"],"latest_commit_sha":null,"homepage":"","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/r17x.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"publiccode":null,"codemeta":null}},"created_at":"2022-10-14T06:11:53.000Z","updated_at":"2025-03-12T06:54:10.000Z","dependencies_parsed_at":"2023-02-18T18:31:46.213Z","dependency_job_id":"28594827-faff-4e3c-9506-e09777aa7209","html_url":"https://github.com/r17x/babel-plugin-react-suspense","commit_stats":{"total_commits":72,"total_committers":4,"mean_commits":18.0,"dds":0.25,"last_synced_commit":"899fbc5871622d51ce174567df853b693844e578"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Fbabel-plugin-react-suspense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Fbabel-plugin-react-suspense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Fbabel-plugin-react-suspense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/r17x%2Fbabel-plugin-react-suspense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/r17x","download_url":"https://codeload.github.com/r17x/babel-plugin-react-suspense/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251729783,"owners_count":21634287,"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":["babel-plugin","hacktoberfest","hacktoberfest-accepted","react","react-jsx","react-library","react-suspense"],"created_at":"2024-10-03T18:22:30.093Z","updated_at":"2025-04-30T15:22:04.424Z","avatar_url":"https://github.com/r17x.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ch1 id=\"toc\"\u003ebabel-plugin-react-suspense\u003c/h1\u003e\n\n\u003cp\u003ea way to wrap component with React.Suspense as \u003ccode\u003esuspense\u003c/code\u003e prop.\u003c/p\u003e\n\n`\u003cComponent suspense={\u003cFallback /\u003e} /\u003e`\n\n↓ ↓ ↓ ↓ ↓ ↓\n\n`\u003cReact.Suspense fallback={\u003cFallback /\u003e}\u003e\u003cComponent /\u003e\u003c/React.Suspense`\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003eFeatures\u003c/a\u003e  • \n  \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e  • \n  \u003ca href=\"#contributors\"\u003eContributors\u003c/a\u003e \n\u003c/p\u003e\n\n\u003c/div\u003e\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/r17x/babel-plugin-react-suspense/release/main)](https://github.com/r17x/babel-plugin-react-suspense/actions/workflows/release.yml?query=branch%3Amain+)\n[![Codecov branch](https://img.shields.io/codecov/c/github/r17x/babel-plugin-react-suspense/main)](https://app.codecov.io/gh/r17x/babel-plugin-react-suspense)\n[![npm](https://img.shields.io/npm/v/babel-plugin-react-suspense)](https://www.npmjs.com/package/babel-plugin-react-suspense/v/latest)\n[![npm downloads](https://img.shields.io/npm/dw/babel-plugin-react-suspense)](https://www.npmjs.com/package/babel-plugin-react-suspense/v/latest)\n[![License](https://img.shields.io/github/license/r17x/babel-plugin-react-suspense)](https://github.com/r17x/babel-plugin-react-suspense/blob/main/LICENSE)\n[![GitHub contributors (via allcontributors.org)](https://img.shields.io/github/all-contributors/r17x/babel-plugin-react-suspense/main)](https://github.com/r17x/babel-plugin-react-suspense#contributors)\n\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c/div\u003e\n\n## Features\n\n- 🤖 Smart enough to import and use `Suspense` based on _user_ source.\n- 🌟 Simply to adopt (just add new attributes or props in your element with `suspense` as key and value as `fallback`.\n\n## Getting Started\n\n[\\[Back to the Table of Contents\\] ↑](#toc)\n\n- [Installation](#installation)\n- [Configuration](#configuration)\n- [Usage](#usage)\n\n### Installation\n\n[\\[Back to the Getting Started\\] ↑](#getting-started)\n\n- yarn\n  - `yarn add babel-plugin-react-suspense`\n- npm\n  - `npm -i babel-plugin-react-suspense`\n\n### Configuration\n\n[\\[Back to the Getting Started\\] ↑](#getting-started)\n\n```diff\n// babel configuration\n-- plugins: []\n++ plugins: [\"babel-plugin-react-suspense\"]\n```\n\n### Usage\n\n[\\[Back to the Getting Started\\] ↑](#getting-started)\n\nThis babel plugin will enable special prop name (attributes jsx) called `suspense` every `JSXElement` declaration. (seem like `css` prop, if you familiar with `styled-component` or `emotion`).\n\n```javascript\nconst App = () =\u003e (\n  \u003c\u003e\n    \u003cUser suspense={\u003cFallback /\u003e} /\u003e\n  \u003c/\u003e\n);\n```\n\n# Contributors\n\n[\\[Back to the Table of Contents\\] ↑](#toc)\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\u003ca href=\"https://rin.rocks\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/16365952?v=4?s=100\" width=\"100px;\" alt=\"RiN\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRiN\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/r17x/babel-plugin-react-suspense/commits?author=r17x\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-r17x\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/r17x/babel-plugin-react-suspense/commits?author=r17x\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"#infra-r17x\" title=\"Infrastructure (Hosting, Build-Tools, etc)\"\u003e🚇\u003c/a\u003e \u003ca href=\"#tool-r17x\" title=\"Tools\"\u003e🔧\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr17x%2Fbabel-plugin-react-suspense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fr17x%2Fbabel-plugin-react-suspense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fr17x%2Fbabel-plugin-react-suspense/lists"}