{"id":32231182,"url":"https://github.com/ericclemmons/require-jsx","last_synced_at":"2025-10-22T11:32:10.380Z","repository":{"id":58225918,"uuid":"10893463","full_name":"ericclemmons/require-jsx","owner":"ericclemmons","description":"A require.js plugin that allows you to use JSX files as require.js dependencies.","archived":false,"fork":true,"pushed_at":"2013-06-23T22:42:28.000Z","size":99,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-11T04:21:36.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"seiffert/require-jsx","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericclemmons.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":"2013-06-23T22:41:17.000Z","updated_at":"2014-09-25T23:00:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ericclemmons/require-jsx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ericclemmons/require-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Frequire-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Frequire-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Frequire-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Frequire-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericclemmons","download_url":"https://codeload.github.com/ericclemmons/require-jsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericclemmons%2Frequire-jsx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280428512,"owners_count":26329418,"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-22T02:00:06.515Z","response_time":63,"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":[],"created_at":"2025-10-22T11:30:29.894Z","updated_at":"2025-10-22T11:32:10.371Z","avatar_url":"https://github.com/ericclemmons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# require-jsx\n\nA [RequireJS](http://requirejs.org) plugin for JavaScript files containing [JSX](http://facebook.github.io/react/docs/syntax.html).\n\nIt can be used to load JS source file that contain [JSX](http://facebook.github.io/react/docs/syntax.html) code.\nThis is helpful when using [React](http://facebook.github.io/react/index.html) with [RequireJS](http://requirejs.org).\n\n## Install \u003ca name=\"install\"\u003e\u003c/a\u003e\n\nDownload the plugin [here](https://raw.github.com/seiffert/require-jsx/master/extras/jsx.js)\n\nPlace this in the directory that is your\n[baseUrl](http://requirejs.org/docs/api.html#config-baseUrl) for your project,\nor set up a [paths config](http://requirejs.org/docs/api.html#config-paths)\nfor it for the module ID `jsx`.\n\n## Usage \u003ca name=\"usage\".\u003c/a\u003e\n\nFirst, you need to configure RequireJS to use Facebook's [JSXTransformer](http://fb.me/JSXTransformer-0.3.0.js) which also is \nin [React](http://facebook.github.io/react/index.html):\n\n    require.config({\n        deps: [\"main\"],\n        \n        paths: {\n            jsx: \"../lib/jsx\",\n            JSXTransformer: '../lib/JSXTransformer'\n        },\n        \n        shim: {\n            JSXTransformer: {\n                exports: \"JSXTransformer\"\n            }\n        }\n    });\n\nThen, you can reference JSX files via the `jsx!` plugin syntax. For example, to load\nthe `router.js` file that is in your `app` directory:\n\n    require(['jsx!app/router'], function (Router) {\n        \n    });\n\nThe Plugin is then going to load the JavaScript source file `app/router.js`, parse it with Facebook's JSXTransformer \nand execute the resulting JavaScript source.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Frequire-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericclemmons%2Frequire-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericclemmons%2Frequire-jsx/lists"}