i am trying save user object in context but i am gettin g undefined this is my context: import { createContext } from "react"; export const UserContext = creat
I wish to create a autocomplete search bar with my own custom call to the backend, which searches through a list of tickers. <Autocomplete mu
Using a global variable to store dark and light mode variable. In app I have place where variable is changed as user toggles if they want dark or light theme, b
To make the accordion component with Headless UI, I have used Disclosure component. But I have a problem to control the collapse/expand state for it's siblings.
Here you will see the start of the NotesFromCoachesForWrestlers component circled The problem is When the notes on the component on the left increase the comp
I've moved a load of helper methods into a npm published library, but some of them are being mocked in the unit tests and I can't figure out how to mock the new
I am writing a React application in which I would like to dynamically render React components through an iFrame. I have a code editor on the webpage that allows
I'm now trying to test a simple React class context that is used to sets a currency to the global state. However, I didn't know how to to consume the context in
I have ReactJS application which receives data from SpringBoot API. I am successfully able to receive the data from SpringBoot as seen through console.log(). B
I'm coding a minesweeper and I got the UI and I can't modify it. I've made the grid for different sizes but now I need to push the mines into it, I created a fu
Is there an easy and quick way to modify these colors? Thanks in advance
I'm trying to create an search input box using antd, but the input box doesnt seem to allow for autosize (when more than one line of text is input, it doesnt ge
hi i have just started learning react and facing problems in understanding fundamentals , here i am creating basic todo app question is why item-id in seq of 1,
Every time I run npm start in vscode I get weird material UI errors like Module parse failed: D:\Websites\rugprints\rugprints\node_modules\@mui\material\node\st
in a functional component i need to show the message to user that email is being sent i am changing the html element text by set state here is the code const [v
I am new to react-table and trying to re-render a react-table when data supplied to it changes. Is there anyway to do so? I have tried using useEffect() with no
Where is the user data stored after decoding it from the token? I'm using react , and the Jwt token is stored in local-storage .
I am using jspdf and html2canvas. Printing the component would make the footer go to the next page. How can I set this where it will dynamically resize to fit i
Here is a the code for you to try. both button works fine while the game is paused or running very fast, but if i set the timeout above 100 or 200 ms and the ga
Here is a the code for you to try. both button works fine while the game is paused or running very fast, but if i set the timeout above 100 or 200 ms and the ga