Made with create-react-library
npm install --save global-utils
import React, { Component } from 'react'
import MyComponent from 'global-utils'
import 'global-utils/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
In order to be able to publish, user have to login to NPM or have .npmrc
file
Content of .npmrc
@dappradar:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=github_token
Github Token can be generated at https://github.com/settings/tokens
(it has to have write:packages
privileges)
1. Update version in package.json
2. npm run prepare
3. npm publish
MIT © [Giedrius Vickus](https://github.com/Giedrius Vickus)