An open API service indexing awesome lists of open source software.

https://github.com/albertarakelyan/genx-react

Generate React components in seconds—like Angular's ng generate but for React.
https://github.com/albertarakelyan/genx-react

Last synced: 4 months ago
JSON representation

Generate React components in seconds—like Angular's ng generate but for React.

Awesome Lists containing this project

README

          

# ⚡ genx-react
*Generate React components in seconds—like Angular's `ng generate` but for React.*

[![npm](https://img.shields.io/npm/v/genx-react)](https://www.npmjs.com/package/genx-react)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

### **What gives `genx-react`?**
- 🚀 **Generate components in seconds** (like Angular's `ng generate`)
- 📦 **Standardized patterns** (no more folder structure debates)
- 🔥 **Supports**:
- Single-file components (`Component.tsx`)
- Container/View pattern (`Component/Container.tsx`)

## **Quick Start**
```bash
npx genx-react
```
Then follow the prompts!

### Templates Included

| Template Name | Description | Files Generated |
| --- | --- | --- |
| `basic` | Generates a single React component file | `Button/Button.tsx` |
| `container` | Generates a pair of files | `Button/Container.tsx`, `Button/Button.tsx`, `Button/index.ts` |