Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 490 Bytes

File metadata and controls

18 lines (13 loc) · 490 Bytes

Generate new component

You can generate new component from console via command:

$ npm run generate --name MyComponent

This command create dir 'MyComponent' in 'src/component', and write files from component template (see 'tools/templates/component').

Basic structure:

MyComponent
│   ├── /MyComponent.js            # React components
│   ├── /MyComponent.scss          # styles for component
│   ├── /package.json              # package file