@zx-toolkit/react-cli
v1.0.6
Published
react CLI
Downloads
3
Readme
ZX React CLI
Welcome to the ZX React CLI repository! This tool is designed to facilitate React project development, streamlining the creation of components, pages, and hooks. With ZX React CLI, you can focus more on code and less on repetitive structuring tasks.
Key Features
| Functionality | Command | Description |
|-|-|-|
| Initialize configuration | npx react init
| Fenerate a default ZX React CLI settings file in your project called react.config.json. |
| Component Generation | npx react new:component ComponentName
| Generates a new reusable component with a basic structure. |
| Page Generation | npx react new:page PageName
| Quickly generates complete pages files, aiding in page development. |
| Hook Generation | npx react new:hook HookName
| Swiftly creates standardized custom hooks for efficient state management and logic in React applications. |
How to Use
Make sure you have Node.js installed on your machine.
Install React CLI globally using the following command:
npm i @zx-toolkit/react-cli
Run the init command to create the default settings file in your React project
npx react init
You can now use the aforementioned commands to generate components, pages, and hooks according to your project's needs.
Contribution
Contributions are welcome! If you encounter issues, have ideas for improvements, or want to add new features, feel free to open an issue or submit a pull request in this repository.
Together, let's make React development more efficient and productive with React CLI. Thank you for using and contributing to this tool!