A CLI tool to quickly generate React component files with associated CSS, supporting both JSX and TSX formats.
- Simple CLI interface for adding React components.
- Supports both JSX and TSX file extensions.
- Automatically generates a CSS file alongside the component.
- Ensures that the directory structure exists before creating files.
- Modern ES6 syntax for components.
To install the package globally, run:
npm install -g npm-create-component
You can use it directly with npx without installing globally:
npx c-c components/About.jsx
--- OR ---
npx create-component components/Home.jsx
--- OR ---
npx create-comp components/Home.tsx