2.2.8 • Published 7 years ago

react-scripts-component v2.2.8

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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: