react-component-generator


Namereact-component-generator JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/pylds/react-component-generator
SummaryA CLI tool for generating React components
upload_time2024-09-03 20:14:14
maintainerNone
docs_urlNone
authorDamian Ledesma
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # React Component Generator

`react-component-generator` is a CLI tool for generating React components quickly and easily. This generator allows you to create functional, class-based, HOC (Higher-Order Components), pure, and memoized components, including CSS files for styling.

## Installation

You can install `react-component-generator` using pip. Ensure you have pip installed on your system.

```bash
pip install react-component-generator
```

## Usage

Once installed, you can use the tool directly from the command line. Here's how to do it:

### Run the CLI

```bash
react-component-generator
```

This will open the interactive interface where you can select the desired option.

### Available Options

- **Generate a React Component**: Select this option to create a new component.
- **Exit**: Exit the tool.

### Generate a Component

If you choose to generate a component, you will be prompted to enter the component name, your project path, and the type of component you want to create. Available types are:

- **Functional**: Functional component.
- **Class**: Class-based component.
- **HOC (Higher-Order Component)**: HOC component.
- **Pure**: Pure component.
- **Memoized**: Memoized functional component.

The tool will automatically create `.js` and `.css` files for the selected component in the specified path.

## License

This project is licensed under the MIT License.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pylds/react-component-generator",
    "name": "react-component-generator",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Damian Ledesma",
    "author_email": "DamianLedesma@protonmail.com",
    "download_url": "https://files.pythonhosted.org/packages/5d/f9/fd65d671dd303414cdc65d1976dac293340401db3f4a667645948d0a4e89/react_component_generator-0.1.0.tar.gz",
    "platform": null,
    "description": "# React Component Generator\n\n`react-component-generator` is a CLI tool for generating React components quickly and easily. This generator allows you to create functional, class-based, HOC (Higher-Order Components), pure, and memoized components, including CSS files for styling.\n\n## Installation\n\nYou can install `react-component-generator` using pip. Ensure you have pip installed on your system.\n\n```bash\npip install react-component-generator\n```\n\n## Usage\n\nOnce installed, you can use the tool directly from the command line. Here's how to do it:\n\n### Run the CLI\n\n```bash\nreact-component-generator\n```\n\nThis will open the interactive interface where you can select the desired option.\n\n### Available Options\n\n- **Generate a React Component**: Select this option to create a new component.\n- **Exit**: Exit the tool.\n\n### Generate a Component\n\nIf you choose to generate a component, you will be prompted to enter the component name, your project path, and the type of component you want to create. Available types are:\n\n- **Functional**: Functional component.\n- **Class**: Class-based component.\n- **HOC (Higher-Order Component)**: HOC component.\n- **Pure**: Pure component.\n- **Memoized**: Memoized functional component.\n\nThe tool will automatically create `.js` and `.css` files for the selected component in the specified path.\n\n## License\n\nThis project is licensed under the MIT License.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A CLI tool for generating React components",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/pylds/react-component-generator"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dda44db4ce61c1f78a3aaa1acffc66d08c0979e52392b014988c29b6531c7885",
                "md5": "c6cd9af3042ff8d99b14a2fee7384bd5",
                "sha256": "c98da8a1107e6a7804beca6a6d1d76e9753fa1072c14038e20d319b9a30a3b0a"
            },
            "downloads": -1,
            "filename": "react_component_generator-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c6cd9af3042ff8d99b14a2fee7384bd5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4993,
            "upload_time": "2024-09-03T20:14:12",
            "upload_time_iso_8601": "2024-09-03T20:14:12.662646Z",
            "url": "https://files.pythonhosted.org/packages/dd/a4/4db4ce61c1f78a3aaa1acffc66d08c0979e52392b014988c29b6531c7885/react_component_generator-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5df9fd65d671dd303414cdc65d1976dac293340401db3f4a667645948d0a4e89",
                "md5": "4457e16e5d2a1b16dc07e867cba16ede",
                "sha256": "9df4c163ac6e29ef5659707520e18471d433839095adfb2ea0b5ea445d21b954"
            },
            "downloads": -1,
            "filename": "react_component_generator-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4457e16e5d2a1b16dc07e867cba16ede",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4036,
            "upload_time": "2024-09-03T20:14:14",
            "upload_time_iso_8601": "2024-09-03T20:14:14.849050Z",
            "url": "https://files.pythonhosted.org/packages/5d/f9/fd65d671dd303414cdc65d1976dac293340401db3f4a667645948d0a4e89/react_component_generator-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-03 20:14:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pylds",
    "github_project": "react-component-generator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "react-component-generator"
}
        
Elapsed time: 0.30298s