Category "javascript"

Refresh Screen A when goBack with React Native using Hooks

I have a simple doubt that I can hope somebody can help me with. I have a simple app that hava a main screen where loads all data that I get from a SQLite datab

How to make lightbox prohibit left and right switching?

I used lightobx to make such a photo group. Although the data-lightbox inside is set with the same name, setting the same name according to the instructions in

Obscurify react code in production by automatically changing all the function and variable names

Are there any libs that help obscurify a react build for production? Something like: const MyComp = () = > { const {propa, propb} = useMyfunc() return(...)

Close button round icon for Android and iOS using React Native

I am trying to create a close button with clickable action. here, I need to design round close button icon and place it top of right corner in the view. How to

Why is the return function in my debounce function never called? Angularjs

I am learning about debouncing, and the concept makes sense, but I don't know why the arrow function that my debounce function returns is never run. public

Add a unique ID to each menu item in Material UI TablePagination

Is it possible to add a unique ID to each menu item that is rendered using <TablePagination >? I want to add a unique ID (for example: id="menu_item_0", i

Vue: mounted changed value not passed to component

This is my Vue main file: export default { name: 'app', components: { FormSelector, }, data () { return { headerInf

What is the difference between a javascript package, node package, and react package?

Are they all the same thing? Can a node program use react package, vice versa?

Refresh specific HTML content that retrieves data from MySQL

So i have a form that that does a simple calculation, depending on the users input. If the results is a certain value then it stores that value in a database, t

What's the minimum I have to do to propagate changes from a node.js file: dependency?

I have a project structure like this: main depends on file:../lib1 which depends on file:../common main depends on file:../lib2 which depends on file:../common

Using react redux with next.js

I try to use Redux with next.js starter project and I installed next-redux-wrapper on the project but I'm not sure where is the root file in this project. I try

How can I apply React Router v6 and react-transition-group transition to only specific routes?

what can I do if I want to exclude some 'routes' from the transition? For example, the routes are as follows; <Routes> <Route path="/login" element={

setTimeout with Promises

I trying to solve a challenge with the following question: Implements a function that takes a number as a parameter and after x milliseconds (between an interv

After test is run, Error "TypeError: Cannot read property '$model' of undefined..." appears

UPDATE: I've found out that i have to mock certain functions but it is still a hell of a job :) I've been stuck on this particular problem for almost 3 weeks no

Line chart is showing under bar in combochart in chartjs

I am using combo chart using chart.js in my website. The problem I am facing is the line disappears when it meets the bar. I think it is because the line chart

What is this function doing calling itself from within?

Below given function is JS sorting function based on multiple criteria. I found this cool function on some website. It would be great if someone could explain t

How to implement a resume pause functionality for file upload ? I am using node js, gridfs and multer

I have used the following link to upload files in mongodb which is working in my application : https://dev.to/shubhambattoo/uploading-files-to-mongodb-with-grid

What is the meaning of empty export {} in vanilla javascript/HTML

In the Google Maps Javascript API example, I see they had something like this in the HTML: <script type="module" src="./index.ts"></script> and an

What is this function doing calling itself from within?

Below given function is JS sorting function based on multiple criteria. I found this cool function on some website. It would be great if someone could explain t

How to pass from Flutter Web to html file (HTMLElement, iframe) arguments for the JS script?

I want to render a pay widget in the Flutter web app and I need a unique token there, so I calling Iframe from Dart to render it. However I didn't find how to s