react-scripts-component
TypeScript icon, indicating that this package has built-in type declarations

2.2.30 • Public • Published

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:

/react-scripts-component/

    Package Sidebar

    Install

    npm i react-scripts-component

    Weekly Downloads

    36

    Version

    2.2.30

    License

    MIT

    Unpacked Size

    137 kB

    Total Files

    46

    Last publish

    Collaborators

    • adriankremer