{"id":15429076,"url":"https://github.com/tj/neutrino-preset-react-require","last_synced_at":"2025-04-19T15:48:31.955Z","repository":{"id":65993685,"uuid":"92439144","full_name":"tj/neutrino-preset-react-require","owner":"tj","description":"Auto import React when JSX is detected","archived":false,"fork":false,"pushed_at":"2018-01-17T23:33:17.000Z","size":3,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T09:41:25.919Z","etag":null,"topics":["neutrino-preset","react"],"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/tj.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"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":"2017-05-25T19:53:40.000Z","updated_at":"2022-10-10T09:35:32.000Z","dependencies_parsed_at":"2023-03-25T21:19:23.114Z","dependency_job_id":null,"html_url":"https://github.com/tj/neutrino-preset-react-require","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"20c66786452374bedb17cec836e25ff26a28566d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fneutrino-preset-react-require","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fneutrino-preset-react-require/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fneutrino-preset-react-require/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fneutrino-preset-react-require/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj","download_url":"https://codeload.github.com/tj/neutrino-preset-react-require/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249220841,"owners_count":21232421,"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":["neutrino-preset","react"],"created_at":"2024-10-01T18:08:43.633Z","updated_at":"2025-04-16T08:33:14.312Z","avatar_url":"https://github.com/tj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# neutrino-preset-react-require\n\nAuto import React when JSX is detected.\n\n## Installation\n\nGrab the preset:\n\n```\n$ yarn add -D neutrino-preset-react-require\n```\n\nAdd it to your package.json:\n\n```json\n{\n  \"neutrino\": {\n    \"use\": [\n      \"neutrino-preset-react\",\n      \"neutrino-preset-react-require\"\n    ]\n  }\n}\n```\n\n## Example\n\nInstead of:\n\n```js\nimport React from 'react'\n\nexport default function Spinner({ size = 'small' }) {\n  return \u003cdiv className={`Spinner size-${size}`}\u003e\u003c/div\u003e\n}\n```\n\nJust write:\n\n```js\nexport default function Spinner({ size = 'small' }) {\n  return \u003cdiv className={`Spinner size-${size}`}\u003e\u003c/div\u003e\n}\n```\n\n---\n\n![](https://img.shields.io/badge/license-MIT-blue.svg)\n![](https://img.shields.io/badge/status-stable-green.svg)\n\n\u003ca href=\"https://apex.sh\"\u003e\u003cimg src=\"http://tjholowaychuk.com:6000/svg/sponsor\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fneutrino-preset-react-require","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj%2Fneutrino-preset-react-require","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fneutrino-preset-react-require/lists"}