Skip to content

Tag: javascript

Export data from MongoDB with MongoExport and query

I’m trying to get a data which doesn’t start with “0”. This query works inside of MongoDB command line but when I do this with mongoexport as I’m getting an error And with like this {“number”: “/^(?!0)/”} it wont match… How could I parse that /^(?!0)…

Input password show and hide

I hope I don’t bother you with a question 🙂 . I have little knowledge about writing code, so I encountered an error there are two inputs I added an eye icon with bootstrap when clicked, the password appears the first input works, but the second input does not show the password What do you think is the p…

Remove hover effects when scrolling

I have been working on an application. There are multiple components on the page. The content inside them is scrollable. The expected functionality is when I scroll inside the component the hover effects on different elements should be disabled. After searching in the internet I have a working solution. I hav…

Emitting custom event in React

In Vue.js we can emit custom events along with a parameter like and then we can listen to this event on the parent component like How can we do that in React? Answer As @usafder, mentioned the way. I am just adding the basic callback function for an input field. So on the console you can see the current value…