Skip to content

A Cli to generate React Component and Hooks.

Notifications You must be signed in to change notification settings

Markos-Th09/react-cli

 
 

Repository files navigation

React Cli

A cli to create React Components and Hooks.

Instructions:

  • Download the binary.
  • To Create A React Component
    ./react -n <Component Name>
  • To Create React Hook
    ./react -n <hook name> -H

Available Flags

-C, --class          Create a Class Based Component
-h, --help           Print help information
-H  --hook           Create a hook file
-m, --module         Create a css module instead of global css
-n, --name <NAME>    The name of the component you want to create
-S, --stylesheet <STYLESHEET>    The name of stylesheet you want to create [default: css]
    --ts             Same as --typescript
    --typescript     Create a typescript component
-V, --version        Print version information

End Notes

Thanks to 0xBirdie for testing and releasing binaries for Windows and Mac machines.

Thanks to Markos-TH09 for compiling binaries for different architecures,refactor the code and setup github actions.

About

A Cli to generate React Component and Hooks.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 80.1%
  • Shell 13.2%
  • Dockerfile 6.7%