I have a function that will allow me to set a buttons text and onclick property Both are set as text params Here is the function: here is what I call The button text is properly assigned but the text that I want to execute is not assigned in the onclick property. It works if I directly type in some
How to navigate from one screen to another in React native?
When I click on Sign Up button I want to navigate to Sign up page but it did not work. I have imported the screens and navigated screen also to app.js file. I am getting an ReferenceError : Can’t find variable: navigation. Also I am unable to insert background image? Below is the Sign Up page. Answer on…
Vuejs : rendering dynamic link in a button base on probs
I have a create button above my table, I’m trying to render dynamic :to v-bind Since I have access to {{title}} Ex. {{title}} = apple, orange, any string I’ve tried I get Try #2 to=”{title}/create” link redirect wrong! http://localhost:8080/%7Btitle%7D/create Try #3 to=”{{title}}…
Trouble batch setting a document field by docId in Firestore
I have been using firebase (firestore) for a while but I’m a little stuck and was wondering if anyone can think of a solution. On the firestore DB I have a single collection of users, each user has an …
Using Interfaces as an attribute in TypeScript React
I have a class called Tab which has three props: num: string desc: string parts: Part[] where Part has this code in Tab.tsx: interface Part { desc: string, link: string } But when I create …
How to use a custom React hook to make a POST or DELETE request with Axios
I am trying to make a generic useAxios hook in React. I would like to be able to import this hook into other components to make Get, Post, and Delete requests. I have created the hook and it works fine for making Get requests, but I am stuck on how to make it work for Post/Delete requests. The issue is
I’m unable to push my bot’s slash commands to an array. Why?
When I try to push my bot’s slash commands to an array which I want to use to register my commands, it doesn’t seem to get pushed, as when I console.log the array, it returns an empty array. But when I log each command individually, it logs properly. Why? Here is the code I use to push my bot̵…
how can i use Route without getting any errors like this
Guys i’m trying to work on my navigation bar and use route but it always shows errors I don’t know the reason but it isn’t convinced with the routes at all and the error is below is my app.jsx code and my navigation is this code as well though i was working navlink and yet it didn’t wo…
Performance metrics for Vuejs
I’m looking for performance metrics for a Vue app. Metrics regarding the whole app but also for some specific components. I know that I can use Vue.config.performance = true; and then run the performance dev tools and maybe I could use something like Performance Observer in order to do specific things o…
Replace Textarea Input With JQuery
I am attempting to automatically replace input from a HTML textarea for specific phrases (for example “a” with “asdf”). My code below works for HTML input boxes, but does not work for textarea. Is there a way to fix it for textarea? HTML: JS: Answer