npm i @niltonxp/react-components-lib
import React from 'react';
import { Button } from '@niltonxp/react-components-lib';
function App() {
return (
<div>
<Button disabled>Demo</Button>
</div>
);
}
export default App;
- Fork the repository.
- Clone the repository to your local machine.
- Install the dependencies using
npm install
. - View the components in the browser using
npm run storybook
. - Make your changes.
- Test the changes using
npm test
. - Build the library using
npm run build
. - Commit the changes and push them to your forked repository.
- Publish the package on npm.
- Install and use the package in your project.