Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

I would like to change the onPressOut field from React Native's Pressable component based on the state I pass in. But when I log it, it keeps giving me stale state and I'm not sure why. I would expect ...
Georgia Martinez's user avatar
1 vote
1 answer
286 views

I am trying to make a button on a react flow node that switches the type of the handles (target or source) and it does not work. In the devtools i can see that the handles ares switching types, but ...
HypergoatTheGr8's user avatar
0 votes
1 answer
32 views

I’m building a programming tutorial website using React. Each content page has a sidebar and a main content section with "Previous" and "Next" buttons to navigate topics. However, ...
SAYANTAN HALDAR's user avatar
-1 votes
2 answers
109 views

What is difference in writing in two different ways below? function App(isTrue){ if(isTrue) return <ComponentA/> else return <ComponentB/> } // what is different if I write ...
Rakesh yadav's user avatar
1 vote
2 answers
91 views

I am studying Front end development and am writing simple shopping cart in React to learn. When I change product quantity I want to create an object of quantity values by product id and pass them to ...
Darius Molotokas's user avatar
1 vote
1 answer
67 views

I have a question regarding react state. I'm still a beginner but - I have a table with three columns. In two of these, I have input fields. I set it up each row is a component and has its own state. ...
Radek Chlud's user avatar
0 votes
1 answer
90 views

I have a state-variable items that's just a collection (object) of items with an ID and a ref (which points to an HTMLDivElement), and a state-variable attachments which is another collection, but has ...
Jonathan's user avatar
-1 votes
2 answers
52 views

I`m learning React and I do not understand - why in first render React generate correctly value playerSymbol, but when It changes it is not re-render even when gameBoard changes. Code: import { ...
Mr Weirdo's user avatar
  • 590
0 votes
1 answer
60 views

I'm encountering an issue with a React component where I'm implementing functionality to upload images. When the user selects an image using the file input, the selected image is displayed within a ...
hussain ashraf's user avatar
0 votes
0 answers
23 views

I need to apply a sliding animation effect to a new thumbnail loaded in the slider. I am unable to figure out how this can be acheived in React. Do I need to use CSS or can it be achieved with ReactJS ...
Pankaj Bhadwal's user avatar
-2 votes
2 answers
128 views

I have been learning React recently, I tried to build a small web-app for learning React. I have doubt regarding the state management. I am not using anying library for state management now and also I ...
littleboy's user avatar
  • 145
0 votes
0 answers
35 views

First of all, I'm learning react and never post anything here. Sorry if I sound confusing, cuz I really am... I have the following project using Functional Components: APP(Parent) |---- Header (...
Alan Ferreira's user avatar
1 vote
1 answer
56 views

I'm working on a React application that features a complex, multiple-page form. The form's data is managed through a context, where each page has its own set of state variables. One challenge I'm ...
Dawood Trumboo's user avatar
2 votes
1 answer
95 views

I'm working on a nested form in React where a user can have multiple forms, each form can have multiple sections, and each section can have multiple dropdowns. I'm facing an issue where removing a ...
theta28's user avatar
  • 340
-1 votes
2 answers
45 views

import React, { useState } from "react"; import Form from "./child/form.js"; import Details from "./child/details.js"; function App() { const [inp, modifyInp] = useState(...
jaiyanth 's user avatar
0 votes
3 answers
98 views

I have a page for listing products in a table, each row of the table has checkbox who meant to toggle the row's active (Boolean) state when it clicked. The problem is that after updating the state the ...
benjah's user avatar
  • 660
1 vote
1 answer
559 views

I have a form that I use to create a new recipe with. This form contains a list of ingredients a user can add to and delete from. It looks like this: I have an Ingredient Component which is just the ...
Saif eldeen Adel's user avatar
5 votes
2 answers
2k views

Is it possible in Next JS 13 to fetch data on the server but then propagate it to Context API? In my case, I want to fetch user information via token on the server, but then pass it to Context API ...
KamranV21's user avatar
0 votes
1 answer
315 views

I am not an expert in react. My problem statement is that I have a main component which in turn renders multiple child components for specific functions Now, when I save the main component , I want ...
Nikhil's user avatar
  • 31
0 votes
1 answer
274 views

I have two Redux slices in my application: userSlice and cartSlice. I would like to fetch a specific value (userName) from the userSlice and assign it as the initial value for a property (user) in the ...
Dev Patel's user avatar
0 votes
1 answer
2k views

This is my RTK query code for social media website but the problem I found is that when I click like , post a comment , and post a reply to comment , delete , update a particular post , then all ...
Bipin's user avatar
  • 79
0 votes
1 answer
453 views

How to change from "Add To Cart" to "Added To Cart" in react.js on clicking the "Add To Cart" button? Here is my "Add To Cart" button. <button className=&...
Jayita Deb's user avatar
0 votes
2 answers
1k views

I have component that have state as object const [data, setData] = useState({ input, output: '', enableCopyToClipboard: true, } When listen to Observable I do following: // reset state ...
Andrei V's user avatar
  • 1,558
2 votes
1 answer
53 views

I have an array in parent component with some values 'name', i want to render the items in the child component based on the matching value from an array with same value 'name'. Like when user clicks ...
Steven's user avatar
  • 269
0 votes
1 answer
451 views

So I'm trying to make a small online store for a personal business. I'm not very good with React, but I feel like I've made some headway and might be able to finish something at least functional, if ...
jimy102's user avatar

1
2 3 4 5
13