{"id":18563261,"url":"https://github.com/compulim/react-hooks-component-under-babel-standalone","last_synced_at":"2026-04-09T22:52:33.021Z","repository":{"id":44072969,"uuid":"208241853","full_name":"compulim/react-hooks-component-under-babel-standalone","owner":"compulim","description":"React Hooks component library running under Babel Standalone","archived":false,"fork":false,"pushed_at":"2023-01-04T10:19:42.000Z","size":1097,"stargazers_count":2,"open_issues_count":39,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-17T13:11:24.786Z","etag":null,"topics":["babel","babel-standalone","pure-javascript","react","react-hooks","react-ui-components","ui"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/compulim.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}},"created_at":"2019-09-13T10:20:32.000Z","updated_at":"2023-02-16T04:12:37.000Z","dependencies_parsed_at":"2023-02-02T08:15:18.543Z","dependency_job_id":null,"html_url":"https://github.com/compulim/react-hooks-component-under-babel-standalone","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Freact-hooks-component-under-babel-standalone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Freact-hooks-component-under-babel-standalone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Freact-hooks-component-under-babel-standalone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compulim%2Freact-hooks-component-under-babel-standalone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compulim","download_url":"https://codeload.github.com/compulim/react-hooks-component-under-babel-standalone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394726,"owners_count":22063984,"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","babel-standalone","pure-javascript","react","react-hooks","react-ui-components","ui"],"created_at":"2024-11-06T22:12:13.232Z","updated_at":"2026-04-09T22:52:32.980Z","avatar_url":"https://github.com/compulim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Hooks component under Babel Standalone and pure JavaScript\n\nThis is a sandbox for trying out a minimal setup for the following:\n\n- Build a UI library that use React Hooks\n   - React Hooks requires a singleton of React in memory\n- Consume the library in a few ways:\n   - Full Babel: Consume UI library as NPM package\n   - Babel Standalone: Consume UI library as CDN bundle, with JSX\n   - Pure JavaScript: Consume UI library as CDN bundle, without JSX\n- Developers can load a version of React/ReactDOM they want to use to `window.React` and `window.ReactDOM`, the UI library must obey\n   - UI library include a version of React, which it will fallback to\n\nWe are not testing Full Babel in this repository because it is relatively easy to done.\n\nWe are testing the following matrix:\n- Initialize UI by JSX via Babel Standalone\n   - With React loaded\n   - Without loading React\n- Initialize UI by pure JavaScript, no JSX\n   - With React loaded\n   - Without loading React\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Freact-hooks-component-under-babel-standalone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompulim%2Freact-hooks-component-under-babel-standalone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompulim%2Freact-hooks-component-under-babel-standalone/lists"}