DEV Community

loading...

Publish to NPM: React component library - the easy way

bmvantunes profile image Bruno Antunes ・1 min read

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!

Discussion (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.

Forem Open with the Forem app