Posts by Marcs • 33 points
6 posts
-
0
votes0
answers17
viewsQ: How to use history.push() with state parameter and also href to call the same route?
My application has private screens on which the user can browse freely, but when trying to access some private area, the user is redirected to login screen. I would like the user to be redirected…
-
0
votes0
answers21
viewsQ: How to return JSON resulting from POST to the front end and display the data?
Although with some years of programming experience, I’m still beginner in web/mobile development. Please, patience... I researched and tried some treatments but without success, for something that…
-
2
votes1
answer61
viewsQ: How do I get a simple change of status from a chekbox in React?
Yes, rookie in React/Typescript. Before anyone tells me to go study the material, I would like to say that I looked at different approaches to this, with different points of view, but none clarified…
-
0
votes0
answers34
viewsQ: Why is rendering occurring in a disorderly manner even using async / await?
I’m using React and Typescript. The application aims to record schedules. In the onChange() date selected by the user, call the function handleChangeData(), in it triggers the date update by…
-
0
votes1
answer29
viewsA: How to fire event once loading the form?
Record the solution to others like me who are in the first steps with React. Quite simple the solution presented by Jonathan CR and Rafael Tavares, through useEffect(). To them my thanks! I simply…
-
-1
votes1
answer29
viewsQ: How to fire event once loading the form?
I have a form that receives parameters with which I perform a get on the server, bringing and rendering the information to the user. Currently this get is done by calling a function on onClick of a…