{"id":15504254,"url":"https://github.com/kentcdodds/cra-macro-example","last_synced_at":"2025-04-23T00:09:12.838Z","repository":{"id":66052700,"uuid":"200152015","full_name":"kentcdodds/cra-macro-example","owner":"kentcdodds","description":"This is an example of how you can use Create React App with Babel Plugin Macros.","archived":false,"fork":false,"pushed_at":"2021-01-25T23:13:00.000Z","size":137,"stargazers_count":39,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T00:08:58.556Z","etag":null,"topics":["babel","babel-plugin-macros","create-react-app","kcd-edu","macros","react"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/github/kentcdodds/cra-macro-example","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/kentcdodds.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":"2019-08-02T02:39:06.000Z","updated_at":"2023-08-30T10:44:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"f9235670-1db4-4410-add5-4c93b1ddbaca","html_url":"https://github.com/kentcdodds/cra-macro-example","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/kentcdodds%2Fcra-macro-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fcra-macro-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fcra-macro-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentcdodds%2Fcra-macro-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentcdodds","download_url":"https://codeload.github.com/kentcdodds/cra-macro-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250343947,"owners_count":21415040,"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-plugin-macros","create-react-app","kcd-edu","macros","react"],"created_at":"2024-10-02T09:16:54.653Z","updated_at":"2025-04-23T00:09:12.817Z","avatar_url":"https://github.com/kentcdodds.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create React App + Babel Plugin Macros\n\nThis is an example of how you can use\n[Create React App](https://facebook.github.io/create-react-app/) with\n[Babel Plugin Macros](https://github.com/kentcdodds/babel-plugin-macros).\n\nIt demonstrates not only using one of the many\n[published macros](https://www.npmjs.com/search?q=keywords:babel-plugin-macros)\n(specifically [`ms.macro`](https://www.npmjs.com/package/ms.macro)), but also\n[how to write](https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/author.md)\nand use your own with the `evil.macro.js` example.\n\n[It even works in codesandbox](https://codesandbox.io/s/github/kentcdodds/cra-macro-example).\n(However, due to caching issues, modifying the macro itself on codesandbox is\nnot currently working. Feel free to\n[file an issue on codesandbox about this](https://github.com/codesandbox/codesandbox-client/issues/new/choose))\n\n[Learn how to get started writing your own macros](https://kentcdodds.com/blog/write-your-own-code-transform).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fcra-macro-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentcdodds%2Fcra-macro-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentcdodds%2Fcra-macro-example/lists"}