DEV Community

Bruno Antunes
Bruno Antunes

Posted on

3

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)

Collapse
 
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:
github.com/jwhenry3/react-template
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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay