Skip to main content

A CLI tool for generating React components

Project description

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.

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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

react_component_generator-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

react_component_generator-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file react_component_generator-0.1.0.tar.gz.

File metadata

File hashes

Hashes for react_component_generator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9df4c163ac6e29ef5659707520e18471d433839095adfb2ea0b5ea445d21b954
MD5 4457e16e5d2a1b16dc07e867cba16ede
BLAKE2b-256 5df9fd65d671dd303414cdc65d1976dac293340401db3f4a667645948d0a4e89

See more details on using hashes here.

File details

Details for the file react_component_generator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for react_component_generator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c98da8a1107e6a7804beca6a6d1d76e9753fa1072c14038e20d319b9a30a3b0a
MD5 c6cd9af3042ff8d99b14a2fee7384bd5
BLAKE2b-256 dda44db4ce61c1f78a3aaa1acffc66d08c0979e52392b014988c29b6531c7885

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page