JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q26339F
  • License ISC

Create React Component, using [js | ts] and/or [css | sass]

Package Exports

  • @travic/crc

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@travic/crc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

CRC - Create React Component

npm i -g @travic/crc
// or
yarn global add @travic/crc
  • run crc in terminal

  • available flags

    • -ts to use typescript
    • -sass to use sass/scss
  • Name component

    • ex. HelloWorld
  • Specify relative path to place Component.

    • Default will try: ./src/components/
  • Default path and example component above will create the following

    • ./src/components/HelloWorld
    • HelloWorld
      • HelloWorld.[jsx | tsx]
      • HelloWorld.[css | scss]
      • index.[js | ts]