useEffect(() => { const method = methodsToRun[0]; let results = []; if (method) { let paramsTypes = method[1].map(param => param[0
I've been using @headlessui/react for a project and it's helped me be very productive! But I've found an issue where one component interferes with another. I th
I am trying to do the discounted price logic Discount price should have the default value of actual price , because 0% discount means the discount price is same
I'm learning React and starting with handling state in a CRUD form via the useState Hook. Something like this: const [data, setData] = useState({}); where data
I was coding and out from nothing I'm getting this error and I don't know what to do. I've tried everything on stackoverflow and other sites already and nothing
When I try to run my Next.js app with npm run dev I get an error message saying that I don't have the required packages to run Next with Typescript: Please inst
DevExtreme React sample application uses ReactDOM.render that was deprecated on React 18. I converted the code to use ReactDOM.createRoot but the webpage is not
I'm making an expense handler app using reactjs in a practical course. Now, I'm supposed to make a new row with the data I'm passing through form. But it only s
How do I create a route in react using react-router-dom v6? Currently I'm trying: <Route path="/registration:id" element={<Registration />} /> With
An invalid hook error occurred in my react app caused by react-router but I can't seem to detect where it's coming from. The full error reads as follows: Error:
I'm working on a post section on my webapp and I decided to use react-draft-wysiwyg. Everything was working fine up to the point where I set editorState={editor
I want to create a contact form where the form fields are changed after they are filled. For example when you fill the email field, you press enter or click the
npx create-react-app shoing eror whent installing, please help me how to solve this problem. my nodejs version is v16.14.2 and npm version is 8.5.0 Installing p
I am trying to send an object from react to express server using node.js this is my object: const formData = { location: location, cost: cost, email
So, we started implementing testing in our app, I used enzyme and my coworkers used react-testing-library. Of course the setupTests.js file is different so eith
Here is, my code. i want to add a spinner when data is loading then after finish loading display the data. {/* product section */} <section className="c
Hope you all are doing fine. RTK queries return response in data attribute which can be accessed via hook generated by RTK My Code: const {data = [], isFetching
ima having a react native web app and when i refresh the page from browser, it navigates to my apps homepage. is there any way that could fix that issue. it ha
ima having a react native web app and when i refresh the page from browser, it navigates to my apps homepage. is there any way that could fix that issue. it ha
I'm using the Select component from patternfly and attempting to do a test that involves making changes to the selection. I feel like I'm in a catch 22 as I can