React npm package starter with typescript and rollup.
Example 1 | Example 2 | Example 3 |
---|---|---|
npm install --save @paraboly/react-apexcharts-dynamic-config
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;
Props | Definition | Type | Default | Required |
---|---|---|---|---|
prop | Example prop | Prop |
null | true |
onChange | Example callback function | (updatedOpt: Prop) => void |
null | true |
MIT License © SchemeSonic
This starter is derived from tsdx
For more information about starter please check https://tsdx.io/