Skip to main content

Generating component

To generate component go inside any existing React project and run the following:

npx arclix generate component [COMPONENT NAME]

or

npx arclix g c [COMPONENT NAME]

The above command will:

  • create a folder named [COMPONENT NAME] and generate the component inside the created folder that will reside on the folder you run the command.

  • use default template and stylings for generating the component.

info

TypeScript is the default template for component generation and if the developer wants JavaScript as the template they can set the usesTypeScript config property to false in arclix.config.json file.

caution

You cannot run this command outside of React project .