README #
Reusable Func Component
Starter code base to create a reusable functional react component for the sunrise b2c digital development team.
$3
* Summary
* Typescript & Rollup are used to create and bundle the reusable components.
* Version
* v1.0.0
$3
* Summary of set up for new
* Clone the code from this repo and remove this project references from files like package.json and rollup.config.mjs
* __package.json__
* Please change the name and dependency details based on the your requirment
* add the peerDependency based on the your requirment
* __rollup.config.mjs__
* change the name in output configuration
``
output:[
{
file:'dist/cjs/index.js',
format:'cjs',
sourcemap:true,
name:'sunrise-fun-comp-lib'
},
{
file:"dist/esm/index.js",
format:'esm',
sourcemap:true
}
]
``
$3
* before upload the package into NPM repo. Please connect with Leads