react-scripts-component
v2.2.30
Published
Configuration and scripts for Create React components.
Downloads
26
Maintainers
Readme
react-scripts-component
This is a fork of the standard react-scripts
to create react components as modules (umd) designed for including in React Apps
e.g.
import Component from 'my-created-component';
Usage
ESNext (with ESlint)
create-react-app {component-name} --scripts-version=react-scripts-component
TypeScript (with TSLint)
create-react-app {component-name} --scripts-version=react-scripts-component --typescript
- Note for TypeScript: the component build creates TypeScript declaration files and points to them in the package.json
This package includes scripts and configuration used by Create React App. Please refer to its documentation:
- Getting Started – How to create a new app.
- User Guide – How to develop apps bootstrapped with Create React App.