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.

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay