i have simple quizz project where i fetch data of questions and answers my problem is when i click on one of the answers i want other buttons to be disabled because if someone keeps pressing on other options the quiz will rapidly change questions. i want to disable other answer options when i clik on the answer and then
Tag: reactjs
How to remove one value from a key in localstorage that has many values?
I’ve seen this question asked before but the solutions didn’t help me hence why i’ve asked it again. Currently, I am storing values into an array and that array is getting stored into localstorage. This is the object I have mapped through this and used ‘name’ as the value. I am calling this value through a button using this function
Nextjs different slug names for the same dynamic path [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 10 days ago. Improve this question This is my folder structure of my nextjs app and Iam getting this error: Failed to reload dynamic routes: Error: You cannot
React native custom fonts not loading in, not sure why?
I did everything like in the documentation, but my Custom Fonts do not want to load in. I could wait for hours and nothing happens… This is my App.js: And this is my useFont.js There is no error printed in the console, so I have no clue what I am doing wrong :/ Answer I’m not sure, but maybe that
How to delete multiple url params
There is a problem with deleting several string parameters. Only the last parameter is being deleted now. upd: I did not specify that I wanted to achieve the ability to remove specific parameter values this code does not work correctly: Sandbox Answer Solved the problem by modifying the function like this
Upgrade to material ui icons v5 broke react-select
I have been upgrading from @material-ui/icons 4.11.2 to @mui/material and @mui/icons-material at 5.2.3 I realize that material UI is not directly used in react-select however as far as I can see there is some interaction. The upgrade from Material UI Icons v4 to v5 seemed to be going fine. But then, I noticed all the react-select dropdowns explode the application
How to get value from radio form in reactJS
I Have this form in one of my react components I then have an onclick function on a button. I want to get the value of the radio form in my function. How do I do that? Is there a way to do it with the useRef hook? Note: I am using functional components so any solution with class components
Need help converting firebase 7.15.1 syntax into firebase 9.6.1 syntax
I am new to Firebase and I am following a tutorial that is a little bit outdated. I need help converting the code that they have into the newer version of it because I believe that the syntax has changed. They are using firebase 7.15.1 and I need the code to be in 9.6.1. Here is the 7.15.1 code: I
Getting error : “react-dom.production.min.js:216 TypeError: Object(…) is not a function” while deploying react app on github pages
I am trying to deploy my react application and its not rendering the page properly, It is throwing the below error : react-dom.production.min.js:216 TypeError: Object(…) is not a function. I have linked the screenshot of the error and the file name along with my github link of the repo.[![ link to my repo: https://github.com/AbhishekTomr/money-tracker Answer The issue is resolved now
Fetching data in react returns “undefined” at first time
I have a function component that I control user login with react. According to the username and password entered in the input, if the value returned from the API is true, it redirects to another page, if false, it stays on the same page. When I press the button when the username and password are correct, the first value is