Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Latest commit

 

History

History
48 lines (33 loc) · 904 Bytes

README.md

File metadata and controls

48 lines (33 loc) · 904 Bytes

React Component Example.

Create a project for the React component library containing a website preview of the component library instance. The documents and component libraries are put into a project, the component library source files are added to the button directory, and the document website source files are added to the src directory.

Quick Start

$ npx create-kkt my-app -e react-component
cd my-app
npm install

# React Component
cd ./button
npm install

development

Runs the project in development mode.

listen to the component compile and output the .js file

cd ./button
npm install

npm run watch
npm run start

production

Builds the app for production to the build folder.

cd ./button
npm run build

cd ../
npm run build

The build is minified and the filenames include the hashes. Your app is ready to be deployed!