i made a bot Help command list by saying ” 911 ” in chat . It gives u an embed with the commands and 3 react buttons “forward” “backward” “delete” . It works as intended but idk why I can only use the reaction buttons once . For example : i am on page 1 , i pres…
Tag: reactjs
Access value from Promise for HTML Element
I’m new to React and javascript and need some help. I’m using a function that returns a Promise including an interface. I want to access the variable in the Interface and apply it in <dl><dt>{//string variable}</dt></dl>. The problem is that I’m only getting a Promise…
React Native Component Exception – Element Type is invalid: expected string…got undefined
I recently added a component to my project and this error is coming up for some reason. I know it’s being exported correctly from the component and imported by App.js correctly. (Exporting as default and importing without {}). It’s also strange that when I change the export of App from exporting i…
Getting blank page when React App is deployed and hosted by firebase
I am getting a blank page when I go to my website domain after deploying it through firebase – I know what I did wrong which was I said (yes) to the option of overwriting my index/html file when running firebase init. I have tried to solve it through various methods, I have replaced the index.html file …
How to map data in react on Radio button click?
Iam trying to display data in react js. Whenever user selects a radio button the data in the api should be displayed according to option selected by the user. i have mapped my radio button component. now i want it to display data according to selected option. the value coming rom the api is mapped below and i…
React map how to remove empty elements?
I have objects, some of these objects have different properties when the map renders empty elements for me https://ibb.co/BGnB0xL How can I remove these empty elements? maybe you need to use filter or something else? JavaScript_Lessons_Objects.js Lesson.jsx I think the problem is clear when I added to the hea…
How can I wait until the functions finish in Reactjs?
Hi I am new to reactjs and I am trying to build button with a function doing some calculation by Reactjs. The logic is, first I will get two lists from database by two functions. After these 2 functions return results and setState, the calculate function will continue and do its job. But somehow the state is …
Scrolling content when mouse is over a button with absolute position (button should remain clickable)
I am trying to scroll a content while the mouse is over a div or a button. This is important because it feels like the app is stuck if you cannot scroll. But the button should remain clickable. Any ideas on how to achieve this? Steps to reproduce Open example https://codesandbox.io/s/relaxed-wood-bqhxh?file=/…
How to loop through complex object or array of object
I am trying to make an app in react native. I have a object below which comes from firebase and made by push method , I tried foreach and map but failed So post the problem here I am learning it but It has been some days I stuck here How can i loop through such data and list someting
Not sure how to stop timer from resetting upon changing nav tabs
Codesandbox I have an app that records user screen time on pages within an app. However, when I click between nav bar tabs(‘About’ and ‘Time’), the timer resets. I do not want it to reset. I want it to pause once I change the nav bar tab and resume when I return to the same tab. I trie…