I'm using react-redux. createSlice: import { createSlice } from "@reduxjs/toolkit"; const datatableSlice = createSlice({ name: "datatable", initialStat
I'm idealizing a doubt bot. In view of this, I must explain that at the end of the member's question, the channel must be closed and before that the bot must se
I'm trying to mock axios.create() because I'm using its instance across the app and obviously need all of its implementation which is destroyed by the mock, thu
I want to fire a jQuery event onclick when the user selects the recaptcha checkbox. This is the code I have: <div id="reCaptcha" data-sitekey="XXXXX"><
This is my code snippet. else if (item.title === 'Text') { try { window.open(`sms:${item.link}`,'_self') } catch
I have a Laravel + Vuejs project and while everything works fine on local development, 2 pages are throwing the ChunkLoadError. I have looked at other issues on
I'd like to show some data on a line chart. The source data looks like this: [ { date: 1, depth: 1, river: 'trent',
I need to learn Next.js for an interview, so I started to follow the tutorial published in Next.js official web page. It was all ok, until I arrived at this sec
Can you explain how to use if statement inside a functional component? I am trying to define a constant based on the value of an event being passed into props.
I've created a canvas which is set to a state using a callback. circles are then created based on mouse x and y that are then drawn to the canvas state after cl
I'm trying to display weather icons from OpenWeatherMap in my weather application using JavaScript. I've tried using jQuery and other solutions I've seen online
I'm working on a nextjs project and I have to implement the google AdSense code that is for automatic ads. So, my google ad code is just this: <script asyn
I'm looking for a way to access the <li> elements present with pseudo-elements such as ::before and ::marker using Javascript. So far I'm not able to writ
I need to change the sticky image (by changing class or changing URL attr) while scrolling past several text sections. Asana on their home page has an exact exa
How can I send data from a function in a .js file to a .vue File .js function editCoupon(id) { window['coupon_id'] = id coupon_id = id } File .vue expo
My question is like, i have a command in 10th line and i am trying to rerun it in 30th line. How can i do this? The detail of rerun command is in the code. Java
Issue: Here I am using an word add-in in word 2016. When a call a function which uses Word.run is giving an error as 'Word' is undefined. The add-in file is wor
This should be pretty simple, but I can't figure out how to do it. I have a component with multiple buttons, each with a "count" value, set with state. When a
I'm trying generate short CSV by the code bellow : Source const csv_content = `"Hello"þ"World"þ"#"þ"123"`; const href = 'data:attachment/csv;c
I am trying to place an image(which is a close button) on iframe at the top-right corner, the iframe and image are loaded from js function in angular, I have pl