SchemeSonic / react-npm-starter

NPM package starter for react libs using Typescript and Rollup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React NPM Package Starter

React npm package starter with typescript and rollup.

Maintenance NPM Netlify Status GitHub license


Demo

Example 1 Example 2 Example 3
Example UI 1 Example UI 2 Example UI 3

https://react-apexcharts-dynamic-config.netlify.app


Install

npm install --save @paraboly/react-apexcharts-dynamic-config

Usage

import React from 'react';
import ReactNpmStarter from '@schemesonic/react-npm-starter';

const example = (): JSX.Element => {
  const options = { someProps: [] };

  return <ReactNpmStarter prop={options} onChange={opt => console.log(opt)} />;
};

export default example;

Details

Props Definition Type Default Required
prop Example prop Prop null true
onChange Example callback function (updatedOpt: Prop) => void null true

Licence

MIT License © SchemeSonic

This starter is derived from tsdx

For more information about starter please check https://tsdx.io/

About

NPM package starter for react libs using Typescript and Rollup

License:MIT License


Languages

Language:TypeScript 39.5%Language:JavaScript 25.0%Language:CSS 19.1%Language:HTML 16.3%