Category "javascript"

How to add recharts to react-pdf

I am using 'recharts' to create graphs for my project, and 'react-pdf' for generating a report. 'Recharts' creates a svg on the DOM when using it and a graph is

removing whitespace from around the website

I was working on this project and while trying to make it fit on all screens using @media it kept leaving a white space below and on the right of the page on th

How to create "recommended content" widget in HTML

i saw a "recommended content" widget in webs and i want to create one to my website. Example of widget i found online: widget i want to create a widget in HTML&

JS how to add hours and minutes to scheduled date

I need to be able to let clients schedule a certain type of meeting for a future date, the meeting duration I get back from the database is in minutes. I need t

How to navigate to specific tab of bootstrap 4 from external link

I want to open a specific tab of bootstrap 4 from external page link . Page 1: nav.html I want to go from this page one to second page <!DOCTYPE html> &

Split long articles into pagination based on Number of lines

I have long articles. Articles are coming from the database. For the easy to read I split the article into pagination. For Pagination I Used Virtual Pagination

How to create a string array in the useState hook and update that same array in TypeScript?

I have a React project where I am trying to create a multi select function where you can select and deselect multiple avatars at once. So far I have this: expor

RSA key conversion from Uint8Array to BigInteger with node-rsa

I have a generated RSA key in the format of Uint8Array but I need the key in the format of BigInteger. See images below. How can I achieve such a conversion?

How to add marker to google map based on data from API react

So I have been trying to implement a google maps instance on my NextJS app, I got most things to work however, I want to display the data I'm fetching from an e

'CI' is not recognized as an internal or external command, operable program or batch file

Whenever I try running npm run build in react, I get the following error: 'CI' is not recognized as an internal or external command, operable program or batch

How can I access and process nested objects, arrays or JSON?

I have a nested data structure containing objects and arrays. How can I extract the information, i.e. access a specific or multiple values (or keys)? For examp

Is the parent object reference changed if a child object is changed?

Suppose I have this let a = { data: 'old' } Lets say hypothetically that a has a reference to '123' If I do a.data = 'new' Is the reference of a still pointin

How to check if the fields exist in a document

I have a user collection and I'm trying to search if the first and last name exists and if not, I just want to put a display message that it does not exist. I t

Can not use variables from background-script inside the popup-script after using getBackgroundpage()

I am new to chrome extensions. I want to program a timer that alerts the user every 40 minutes and tells him to drink a cup of water, but I ran in some issues.

Custom onChange for React Hook Form and watch()

I am trying to write a custom onChange and watch the change. Error: The watched myValue does not register the changes in the dropdown. Any ideas why? According

Apply motion to react component Framer-Motion

I know that I can apply motion directly to element/HTMLtag like this: <motion.div>some content</div> But how can I apply it to this? <Comp />

How can I get the all html code into view page source as I am developing a project in NEXT.js

I am developing a project where i am using NEXT.js but there i am getting a issue like i am not getting the all html value in view page source. I think my probl

What is the temporal dead zone?

I've heard that accessing let and const values before they are initialized can cause a ReferenceError because of something called the temporal dead zone. What

Accessing caches on a html page?

When I try to open console on my domain's index.html and try to access caches on Latest Chrome it gives me caches VM1520:1 Uncaught ReferenceError: caches is n

How to upload multiple files in different folders using Reactjs and Laravel

I want to let users of my website upload multiple files that could be in different folders. Using 'multiple' attribute in file input control doesn't let you sel