ctcomp
is a command-line utility for creating React components with TypeScript and SCSS modules quickly.
To use ctcomp
, first install it globally:
npm install -g ctcomp
Then, you can use the ctcomp
command to create a new component:
ctcomp MyComponent
This will create a new directory called MyComponent
in the current working directory, with a MyComponent.tsx
file and a MyComponent.module.scss
file.
Creates a new React component with the specified name. Returns the name of the created component.
Contributions are welcome! If you have any feature requests or bug reports, please open an issue on the GitHub repository.
ctcomp
is licensed under the MIT License. Feel free to use it in your projects! ๐