menu

Recent questions tagged react

1 vote
1 answer
Why is the context lost in the handler? There is a field input, I hang the event 'keyup' on it, after which the text of this input is added to the store. The problem is that in the addTodo function the text va ...
by zlodiak
asked Sep 24, 2021
1 vote
2 answers
Catching changes to a child component? I have a parent component class Parent extends React.Component { constructor(props) { super(props) this.testInputValue = '' } log_test_input_valu ...
by mashincode
asked Sep 24, 2021
1 vote
2 answers
How to gradually move a large project to React? There is a large project written in Knockout + Ruby. The client wants to gradually rewrite it in React + Ruby. Found nothing on the Internet, except a few small articles ...
by dimakrsna
asked Sep 24, 2021
2 votes
1 answer
Is it normal to use data from different redusers in one component? I have one page, for example, I need to load a list of students from one redirector, and a list of faculties from another. Isn't that legal? Isn't there any contradicti ...
by danyvasnafig
asked Sep 24, 2021
1 vote
1 answer
How do I change the Control of react-leaflet-control's pop-up text on hovering? I need to change the language in which tooltips are displayed on the hover (in the layout of Control turns into a tag with a title, which must be changed), tell me, is i ...
by KnopkaNen
asked Sep 24, 2021
1 vote
2 answers
Why is 1 Stat element empty? Good afternoon, there is this code const item, setItem = useState({ id: null, name: "", price: "", weight: "" }) const cart, setCart = useState() const addT ...
by DeniSidorenko
asked Sep 24, 2021
1 vote
1 answer
How to make a modular window in React? Hello! I have a modular window and I made it a component (in a separate file), when you click on the div element you need to show this window. ( I have the modular win ...
by Chorrny
asked Sep 24, 2021
1 vote
1 answer
Why don't tabs work in React? I can't get tabs to work in React( Neither the tabs themselves switch, nor the active class on the buttons works. Can you please tell me what's wrong? https://stackbli ...
by DaveGarrow
asked Sep 22, 2021
1 vote
1 answer
How do I redraw App.js? I use react-redux in my project. There is some string variable stored in the stor, I change it from the internal pages of the site. The problem is that in App.js I can't ...
by zlodiak
asked Sep 22, 2021
1 vote
2 answers
image
React changes the picture depending on the value of the input? Help! I have some pictures that should change depending on the number entered in the input. I get this value with the useState hook, but I don't understand how to change ...
by MadBliss
asked Sep 22, 2021
1 vote
1 answer
React/Redux How to properly sort an array of data by sending time? I have an array of users, each user has an array of messages with the date each message was sent. The task is to sort the user list component by sending time, so that u ...
by David-Bon
asked Sep 22, 2021
1 vote
2 answers
How do I make a stub before the data comes in? Good afternoon gentlemen. Tell me the best way to create a stub blocks like on avito for iPhones. I would like to think of something, but it is quite difficult. I am wri ...
by edding8750
asked Sep 22, 2021
1 vote
3 answers
How do I make React and the Backend part of Node.js work together? I just started developing applications, and I can't figure it out. How to connect the frontend - in React and the server in Node.js? Remotely - bought a VPS, set it up, ...
by AlexNoch
asked Sep 22, 2021
2 votes
1 answer
How do I split css into bundles in webpack? The case is not standard. This is a React application with css-modules (scss). My application has several React applications. const togglerRoot = root.querySelector(`# ...
by dakiesse
asked Sep 22, 2021
1 vote
1 answer
How to use node.js in a react application? I created an application on react, compiled it in the build folder. I created a file that runs the server. "server": "nodemon server.js". When I run npm run server, it ...
by aleshaykovlev
asked Sep 21, 2021
1 vote
1 answer
How to implement component switching by clicking on an element? In fact, I want to do the following: There is a Sidebar in a separate component, depending on which element I clicked on in the Sidebar I need to load different compon ...
by teertsneerg
asked Sep 21, 2021
2 votes
1 answer
What is the best way to store the user's order? Good afternoon, I am making a website on the MERN stack What's the best way to store the user's items that he added to the cart? Localstorage or there are more suitabl ...
by DeniSidorenko
asked Sep 21, 2021
1 vote
1 answer
React Ant Design - how to correctly split Layout? And how can I implement Routing with different Layout? Hi all, I want to use Ant Design, but I ran into one problem... There are different Route with different designs. For example: Login, NotFound, etc... I only found ...
by symnoob
asked Sep 21, 2021
1 vote
1 answer
How do I disable auto-slider in Carousel Bootstrap on React? import React from 'react';import { Carousel } from 'react-bootstrap';import Project2 from './../../image/Project2.png'import project1 from './../../image/project1.jpg'cl ...
by AlexAdekvat
asked Sep 21, 2021