Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 9 months ago. Improve this question I am using Vite to easily run tailwind and other npm packages in my …
Using App component as a home page in react (path “/”)
this is my first question here and I apologize upfront if it already been answered. I’m studying react and I started a project as well, and my question is: how can I make my App component a home page? Or do I have to create a component to do so? I´m using react-router-dom for navigation, like the code b…
How to pass public key in javascript struct to anchor rpc method
I am trying to pass a public key to a anchor rpc method but think I am not generating it correctly in Javascript, I tried padding it with and without quotes but to no avail. anchor test gives me a TypeError: key.toBuffer is not a function IF I pad it. IF I do not pad it then I get the
How can I Improve my logic by using forEach, not for loop in Javascript
Please check my code first I used axios.all (GET method). Right now, I’m using for loop for combining all the responses to an array. However, What I’m trying to do is using forEach, not for. I have checked https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEa…
Why number or digits showing dots on smartphone? [closed]
Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on anoth…
Return address function from smart contract returns promise object instead of address in truffle test
Hi I have an address return function that works in remix but when I try to run it in a truffle test it gives me a promise object. If I could have the truffle test return an address like it does in the solidity code that would be ideal or if I can access the promise object to give me
Do I want the buttons to change color when I click on them?
I want that when I click on the buttons it changes color. This is for a slider, the error is that it does not change color when I click, the only thing that changes is the image and I have tried several ways but it has not worked. I put the color in the css but it still does not
Using async/await inside firebase cloud functions
When performing asynchronous tasks inside a firebase cloud function do I need to await for every task like the example below: or can I just fire these asynchronous calls? given that I don’t need to return anything based on the data received from these tasks to the client like in the other example below:…
Using a for loop to display HTML element using JavaScript
I’m currently working on a project where I have a gallery (Gallery.php) containing a carousel of images, if an image is clicked on, the ImageID (I have set) and the Image URL are added to a 2D array in the localStorage. I am attempting to retrieve the array from localStorage in the homepage (index.php) …
Redux best practice to filter data
in the process of developing an application, I’m facing a question about whether I’m using Redux correctly. I have a fav:[] in which I add product objects and render their list. However, in order for the data not to be lost, I have to copy this fav:[] to favCopy:[] and only after that execute .fil…