{"id":23283575,"url":"https://github.com/anilpdv/react-component-generator","last_synced_at":"2026-05-02T11:35:28.366Z","repository":{"id":51947341,"uuid":"187674605","full_name":"anilpdv/react-component-generator","owner":"anilpdv","description":"generates react components with angular name convection.","archived":false,"fork":false,"pushed_at":"2021-05-08T21:06:06.000Z","size":2578,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-28T07:09:28.820Z","etag":null,"topics":["react","react-cg","react-component-generator"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-cg","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/anilpdv.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-05-20T16:13:04.000Z","updated_at":"2022-08-06T09:46:17.000Z","dependencies_parsed_at":"2022-08-23T14:20:13.853Z","dependency_job_id":null,"html_url":"https://github.com/anilpdv/react-component-generator","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/anilpdv%2Freact-component-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilpdv%2Freact-component-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilpdv%2Freact-component-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anilpdv%2Freact-component-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anilpdv","download_url":"https://codeload.github.com/anilpdv/react-component-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247500454,"owners_count":20948877,"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":["react","react-cg","react-component-generator"],"created_at":"2024-12-20T01:22:32.621Z","updated_at":"2026-05-02T11:35:23.346Z","avatar_url":"https://github.com/anilpdv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-cg\n\n\n[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)](https://travis-ci.org/joemccann/dillinger)\n\nReact-cg is simple component generator for react with some boiler code.\n\n```sh\n$ react-cg -h\nUsage: react-cg [options] [command]\n\nrgc\n\nOptions:\n  -V, --version      output the version number\n  -h, --help         output usage information\n\nCommands:\n  generate|g \u003cname\u003e  generate component\n\n```\n\n# Commads\n\u003e react-cg has only one command generate alias 'g' to generate component.\n\u003e it will ask for which component type you want like class or hook, use space to select.\n\n```sh\n$ react-cg generate PostsList\n? select component type (Press \u003cspace\u003e to select, \u003ca\u003e t\no toggle all, \u003ci\u003e to invert selection)\n❯◯ class\n ◯ hook\n```\n\u003e it will ask for which javascript extension type you want like js or jsx, use space to select.\n\n```sh\n? select component type class\n? select js type (Press \u003cspace\u003e to select, \u003ca\u003e to toggle all, \u003ci\u003e to i\nnvert selection)\n❯◯ js\n ◯ jsx\n\n```\n\u003e after selecting for javascript extension you will see another prompt for style sheet extension.\n```sh\n? select component type class\n? select js type jsx\n? Select css type (Press \u003cspace\u003e to select, \u003ca\u003e to toggle all, \u003ci\u003e to \ninvert selection)\n❯◯ css\n ◯ scss\n ◯ sass\n```\n\u003eafter selecting style sheet you can see your component folder in current directory.\n```sh\n? select component type class\n? select js type jsx\n? Select css type css\nfile : PostList.component.jsx genrated in PostList folder\nfile : PostList.component.css generated in PostList folder\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilpdv%2Freact-component-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanilpdv%2Freact-component-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanilpdv%2Freact-component-generator/lists"}