I'm working on a web app builded in Django and React, I've a question about to change the width and height of my Lottie img when the screen change Its size. Tha
I implemented a Popper component using popper.js, and I used React's Portal to render popper element. And now I want to preview my popper component, but It fail
First time posting so please bear with me. I'm playing around with D3.js and charts at the moment and having trouble getting a working onclick function to displ
I want to apply validation on controller level similar to what we have in a Form Request in Laravel but I want that in Node JS. I want to know the required fiel
I have some javascript that puts click handlers on buttons (for instance). Since those buttons don't exist when the user first visits the app at, say, the "Home
I am trying to translate this piece of code from Javascript to Python but could not find an equivalent of a Promise and an async function in Python. async funct
I am writing a simple html code for a timer countdown of some events. Actually i am using .getTime() function and everything is work. My question is could I sta
I'm trying to read a csv file in Typescript with "csv-parse" library by creating an observable; the following code use fs.createReadStream to read the file; I w
Below code does save a file to the user's disk: function handleSaveImg(event){ const image = canvas.toDataURL(); const saveImg = document.createElement('a')
document.addEventListener("visibilitychange", onVisibilityChange, { passive: true, }); This will fire even when someone navigates away from my page. Of
I have a react application having a community chat feature. The code for the comment section is : I am a newbie to this error and have no clue about it, can som
Searched for a few hours on the web for this one, but only found the following. First, JavaScript has Math.clz32(x), so you can Count Leading Zeroes on the 32-b
I am facing this issue from a long time, Finally I managed to make a demo example of my problem. I am trying to make a infinite image scroll view. So when we po
I'm trying to implement WebSocket support into my app by following React Native's own tutorial at https://reactnative.dev/docs/network#websocket-support. Here i
vuex store/modules/cafes.js import CafeAPI from "../../apis/cafe.js"; export const cafes = { //status = 0 -> 数据尚未加ů
I have created a new Mongo collection to a new project, but when I try to create a new user, I get the following error: MongoError: E11000 duplicate key error c
So I'm trying to use useState in my nextjs app, but as soon as I add in the line of code to initialize useState it throws a popup error with the error message:
I did the code for dark/light mode this way, using Javascript and CSS. but I can't find anywhere a way to add a transition on changing the light/dark modes. CSS
I am trying to install this app locally on my m1 MacBook air > Github - Todoist Clone Running npm install in the terminal is causing the following error, ple
I'm trying to add another field value in a document but firebase returns TypeError: n.indexOf is not a function. Here's the code: async function linkLCSN(cor, s