---
title: "Discussion on \"Creating and Publishing a React Component Library as a NPM Package via React, Storybook adn Rollup\" | Hashnode"
description: "Discussion on \"Creating and Publishing a React Component Library as a NPM Package via React, Storybook adn Rollup\". Initiating Base Setup - any one from the two below\nI. With NPM INIT\n\nStar with an empty folder and creates a package.json\nnpm init\n\nCreate directories:\nmy-react-lib\n  └── src\n       ├── components\n       └── index.js\n\nadd dependencies only in develop..."
url: "https://hashnode.com/posts/creating-and-publishing-a-react-component-library-as-a-npm-package-via-react-storybook-adn-rollup/60f076c8303c5845ab8c9c14"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating and Publishing a React Component Library as a NPM Package via React, Storybook adn Rollup](https://appsplash99.hashnode.dev/creating-and-publishing-a-react-component-library-as-a-npm-package-via-react-storybook-adn-rollup?utm_source=hashnode&utm_medium=feed)

Initiating Base Setup - any one from the two below I. With NPM INIT Star with an empty folder and creates a package.json npm init Create directories: my-react-lib └── src ├── components └── index.js add dependencies only in develop...

Jul 15, 2021 · 4 min read · appsplash99.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#npm](https://hashnode.com/tag/npm)
-   [#package](https://hashnode.com/tag/package)
-   [#components](https://hashnode.com/tag/components)

## Written by

[Apurv Chimralwar](https://hashnode.com/@appsplash99)

@appsplash99

  
[View profile](https://hashnode.com/@appsplash99)

React | Full Stack Developer

Trying to get better than i was yesterday.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
