Questions tagged [reactjs]

React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

0 votes
0 answers
2 views

How do I make a post request from react.js front end to flask backend that sends data but also grabs data?

I am posting a user id to the backend route /stat. In /stat I want to perform a query that takes in user id as a parameter. Then I also want to get the result of the query in the front end so I can ...
user avatar
0 votes
0 answers
4 views

Can Bootstrap Carousel fit the Screen on mobile or can it be mobile friendly?

I am using Bootstrap 5.2 Carousel on ReactJS and new to react, I am not sure why is this happening or is this normal, I want the image to fit the screen on mobile is there any other way to fill the ...
user avatar
0 votes
1 answer
7 views

i want to instell movie-trailer npm pakage ,but what are these errors?

How do solve these errors? $ npm I movie-trailer npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code E404 npm ERR! 404 Not Found - GET https://...
user avatar
0 votes
0 answers
4 views

How to handle event browser's button in React?

I have "react-dom-router v6.3.0" (strictly!) now and I couldn't understand how to handle browser's button back. For example I need to catch the event, so I could open warning modal that user ...
user avatar
  • 1
0 votes
0 answers
5 views

React.js -- Table not redrawn when data is filtered

I have a table in Next.js that, despite inputting the text into a text field, isn't being redrawn. When redrawn, the table should return a single result, but it is currently only updating the top row ...
user avatar
0 votes
0 answers
8 views

What would be the best way to list an array inside an object?

I have this object, and a need to list (to map) the 'tagLists': { "tags": [ { "key": "string", "value": "string" } ], "...
user avatar
0 votes
0 answers
6 views

How to use react-image-crop with python-django backend cropping?

I am trying to use Python Pillow to crop the images with react-image-crop and it seems to be working fine, but I can not figure out how to set the scale (zooming) to be working with the backend. Any ...
user avatar
0 votes
0 answers
13 views

How to call function when state changes except first loading

I want to call function when state data changes but not first loading. This is my code. const Page = (props) => { const { data } = props; const arrowDirection = (item) => { if (item....
user avatar
0 votes
0 answers
7 views

Redux action causes local state change

Hi first I should mention, I am using Class components for this project. So i have a "pop-up" components the user toggles with a click, the toggle state is stores with redux. const ...
user avatar
-4 votes
0 answers
8 views

Como fazer deploy só de um package de um monorepo no Heroku e não de todos os packages?

Muito boa noite, meus/minhas camaradas. Eu tenho um monorepo com a seguinte estrutura: mono-repo --packages |—client | |--package.json | |--package-...
user avatar
0 votes
1 answer
10 views

Updating state array with a component as a value

How can I include a component in a state when updating? I have an icon and this is what I tried: useStates((prevState) => ({ ...prevState, iconState: <MyIcon /> + "Some text", })...
user avatar
  • 304
0 votes
0 answers
10 views

LocalStorage not found nextjs

I'm new to nextjs and I need to inject all data that I got from my Api everything work but I have some request who are still in unauthorized. To access to my api i need a bearer token, i stock it in ...
user avatar
  • 15
0 votes
0 answers
11 views

Can we delete a list of Ids from database?

Can we delete a list of Ids (int[]) in database from react? I have below and it doesn't work ... error message is: SyntaxError: Unexpected token 'M', "Microsoft."... is not valid JSON =======...
user avatar
0 votes
1 answer
14 views

why components state data are gone in conditional rendering

I am new to react and come from a background of functional component only. In my react project, When I conditionally rendering , ie from false to true, the data inside child component will be gone. ...
user avatar
  • 332
0 votes
0 answers
7 views

react testing library - test window.addEventListener('mouseout')

I have a modal component which will trigger when the users mouse leaves the window. I have archived this via a useEffect hook. useEffect(() => { document.addEventListener('mouseout', (e) => {...
user avatar

15 30 50 per page
1
2 3 4 5
27242