@travic/crc
v1.0.14
Published
Create React Component, using [js | ts] and/or [css | sass]
Downloads
23
Readme
CRC - Create React Component
npm i -g @travic/crc
// or
yarn global add @travic/crc
run
crc
in terminalavailable flags
-ts
to usetypescript
-sass
to usesass/scss
Name component
- ex. HelloWorld
Specify relative path to place Component.
- Default will try:
./src/components/
- Default will try:
Default path and example component above will create the following
./src/components/HelloWorld
HelloWorld
HelloWorld.[jsx | tsx]
HelloWorld.[css | scss]
index.[js | ts]