DEV Community

Cover image for React-copytext
Matheus Cruz Rocha
Matheus Cruz Rocha

Posted on

React-copytext

It's been a long time since I created and published some packages in npmjs (when I say a long time I mean really long), and when you do these kinds of things just once in a while you forget a lot of steps.

Recently I was checking if I could find one of those components that you have a text inside a box and a button to copy text that copies the content to your clipboard. It's a simple component, really easy to build but I checked if I could find one that already exists and I couldn't find a good one (maybe it exists but is not indexed properly on the internet). These days we have a lot of components that add so much complexity to use because it has tons of features and we just want a simple one that does what it promises in a simple well, which means doing one task really well. So I thought "Maybe it's a good opportunity to build one and practice the whole workflow of publishing a package on the npmjs with automatic deploy and so on". And that's what I did.

Github
NpmJs

Project readme image

Yesterday I released "react-copytext" under the namespace @nobrainers, my idea is to release more of those simple and easy-to-use components that are easy to build but not because it's easy doesn't mean it does not cost you some time to make them.

I am open to your feedback and appreciate that you spent some time reading this post. I am open to ideas about new components to put in this @nobrainers namespace.

Thanks for your attention.

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more