DEV Community

Discussion on: I've made a react component that hides sensitive information in your app.

Collapse
 
eecolor profile image
EECOLOR

Hello,

Am I correct in thinking that simply adding the following CSS would have the exact same effect?

*[data-safe] {
    filter: blur(.3rem) !important;
}
Enter fullscreen mode Exit fullscreen mode

If that is the case I think it would be better to not use an external library with its associated security and maintenance cost.

Collapse
 
itaylisaey profile image
ItayLisaey

You are definitely correct.
I actually said exactly that on some of the posts I wrote.
The reason I made it into a library is for my personal comfort and it fits my use cases.

You are more than welcome to use any of the code in library without using it through npm.