0.5.4 • Published 4 years ago
@kogk/common-components v0.5.4
@kogk/common-components
Modified from: Harvey Delaney ▸
Development
Testing
npm run test:watch
Building
npm run build
Handy
npm run generate YourComponentName
This will generate:
/src
/YourComponentName
YourComponentName.tsx
YourComponentName.test.tsx
YourComponentName.types.ts
The default templates for each file can be modified under util/templates
.
Don't forget to add the component to your index.ts
exports if you want the library to export the component!
Can I code split my components?
Yes you can.
Read this section of my blog post to find out how.
Or check out this commit to see what changes are neccesary to implement it.