DEV Community

Bruno Antunes
Bruno Antunes

Posted on

Publish to NPM: React component library - the easy way

If you have ever thought about publishing a react/typescript package to NPM and found it a complicated task, this video is for you :)

In this video I show the easiest and fastest way I know to create and publish a react component library to NPM. The "magic" sauce for this is tsdx!

Top comments (1)

jwhenry3 profile image
Justin Henry • Edited

For React and Typescript, I have a project template I use when I may need to do just this:
it includes husky for git hooks, eslint, prettier, and a pipeline starter plate for CI/CD. Once you get going in the project, it gets really easy to rapidly scale out a robust suite of React libraries and it also includes Storybook and NextJS in case you want to build an app in the same project.