Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 14, 2021 02:03 pm GMT

Published my first npm package!

As the title suggests, I published my very first npm package earlier this week!

This is something that has definitely been long overdue, and I should have been doing for years. I have so many random code things I have done to simplify or abstract processes or components but have just never committed the time to actually sharing it out to the world. Well, now I have!!!

I hope to continue this trend and publish more packages in the future, but in the meantime here is some info about the package:

@rathpc/zendesk-react

A minimal component based implementation to include Zendesk in your React application.

  • If you are using the Zendesk integration in your React application, you might find this useful. It essentially gives you a way to include the integration without explicitly needing to add the script yourself in an HTML file or template being passed into your bundler of choice.

  • This makes it a bit easier to consume and tweak usage based on environment.

Feel free to try it out and let me know if there is anything you want to see added to it or changed! I plan to add some more thorough typing of the zendeskApi function usage based on the Zendesk docs so it will be even easier to use and have auto completion!!!

Sidenote: This effort was definitely inspired by another package (react-zendesk) that is also available but it hasn't been maintained in quite some time. My intention was to build on that idea, update the logic to leverage newer React syntax and capabilities (16.8+) as well as write it purely in Typescript.


Original Link: https://dev.to/rathpc/published-my-first-npm-package-4f1f

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To