header-custom v1.0.1
Reference: https://levelup.gitconnected.com/building-a-react-component-library-e4eb7985ff5d
npm install -g create-react-library
create-react-library header-custom
-- Build npm build
-- Login with NPM Credentials npm login
-- Publish code to NPM npm publish
Published Location: https://www.npmjs.com/package/header-custom
Compiled files for reference: https://github.com/bpolimetla/header-custom/tree/main/dist Same can be deployed to web server or CDN and share those details with clients
#------------------------- Run these commands in demo folder npm install -g live-server // Install globally via npm live-server // Run in the html's directory
#------------------------------ Also published demo html file and js files /dist from Your site is live at https://bpolimetla.github.io/header-custom/
header-custom
custom header library
Install
npm install --save header-custom
Usage
import React, { Component } from 'react'
import ExampleComponent from 'header-custom'
import 'header-custom/dist/index.css'
class Example extends Component {
render() {
return <ExampleComponent />
}
}
License
MIT © bpolimetla