Posts by Pedro • 307 points
22 posts
-
0
votes1
answer29
viewsQ: Add a delay to the Buzz Out animation after each loop
Hello, I’m trying to put a delay in my Buzz out animation after each loop, I’m applying it in a text, which is inside the p tag. I’ve looked for several answers and most of them say to put the first…
-
1
votes1
answer96
viewsA: How to change the color of an SVG dynamically with props in React?
I was able to solve only important svg as a component, because img does not render svg on the screen, I did it as follows import { ReactComponent as HexagonSVG } from "./hexagon.svg"; Right below,…
-
2
votes1
answer96
viewsQ: How to change the color of an SVG dynamically with props in React?
I’m trying to change the color of an SVG through props, but I’m not getting it. My component Hexagon that in which I receive the color via props and check with a switch: function Hexagon({ size,…
-
1
votes1
answer46
viewsQ: Private route does not check whether the user is logged in or not
Good morning, I am trying to check if the user is logged in or not, I have an endpoint that returns me a token, on the front I am taking this token and doing this check, the problem is that even…
-
0
votes0
answers45
viewsQ: Render notification component on screen
Hello, I’m trying to render a notification component on the screen when the Ubmit button is clicked, however I’m returning the component directly in Return, it’s not working because it’s the wrong…
-
-1
votes1
answer110
viewsQ: How to browse an array of Objects within another Object Array
Hello, I have two arrays of objects within an array of objects, and I would like to be able to access them and render the objects from within (the objects of the object obj1 and of obj2) Well, I…
javascriptasked Pedro 307 -
0
votes1
answer196
viewsQ: Creating Migrations using module.Exports
Hello, I’m trying to create a Migration using the knex, but the knex does not accept the export default then as an alternative I am using the import mode ECS5 (ex: const knex = require('knex) and…
-
1
votes1
answer199
viewsQ: Return key and value pair using a map
Hello, I am trying to return a key and value pair using the function map(), however I am passing the information to my component via props, my component receives a text and a value inside it and…
-
0
votes0
answers312
viewsQ: How to format antd Inputnumber to accept "," to decimal and "." to centesimal
Hello, I’m using antd’s Inputnumber. In this example below antd is using regex so it formats the number, but it only accepts "." so I couldn’t just type "10.5" but "10.5" <InputNumber…
-
0
votes1
answer35
viewsQ: isLoading on request is not working
I am trying to put an isLoading on my application made with React but it is not working, I have my handleSearch function that is making the request, this function is being passed to my component…
-
0
votes1
answer181
viewsQ: Object array iteration with map returns Undefined
I am consuming the Github API and I am browsing the repositories of a particular user, but when trying to access the properties it is returning undefined. As you can see in the picture, mine result…
javascriptasked Pedro 307 -
-1
votes1
answer49
viewsQ: how to display information by params of an object array in a component in React JS
I have two files, Listcurses and Cardcurses, in Listcurses I have an array of objects and I’m trying to perccorer and display the information in another component (Cardcurses) by props, but the page…
-
0
votes0
answers50
viewsQ: Make antd pagination dynamic
Good, good day. I’m working with paging using the Antd Table component, this table does the data display, I’m trying to get when the user clicks on a certain number, the front will request the back…
-
0
votes0
answers116
viewsQ: How to test prop update in Reactjs
I created a component Button which has a function onClick and a prop disabled. The function defines a state isLoading as true, and prop receives the value of this state, that is, while the page is…
-
0
votes1
answer653
viewsQ: Displaying data with React JS
Good morning guys, I’m trying to display on the screen a message typed by the user, something very simple but as I am new in React I don’t have much idea how to do this. Well, the code below went as…
-
1
votes1
answer2503
viewsQ: Importing css into React JS
Good morning, I am new to React and I am trying to import a css file into my Cabecalho component, however I am not able to do this with normal import, I would like to know how to do this because it…
-
1
votes2
answers207
viewsQ: How to check whether an image has been clicked or not
I did an exercise using pure javascript, the exercise asked you to click on an image of a lamp "erased" and, soon after it was clicked on this image, the attribute "src" of it changed and received…
-
0
votes1
answer153
viewsQ: Java Script does not inject HTML correctly
Good afternoon, I am making a website apênas with pure Html5 and Css3 and in it has a menu, however I want that menu stay fixed in all other pages and then not to need to copy and paste the code in…
-
0
votes1
answer713
viewsQ: Positioning images using Flexbox
I’m a beginner in web and I’m using CSS grid in the structure of my page but I’m trying to position an image in the center of the screen using flexbox to make the page dynamic but I’m not getting…
-
3
votes1
answer447
viewsQ: Menu using Css Grid
I’m starting my studies with CSS Grid and to train I’m trying to make a simple menu, the structure of my grid has 4 columns for 4 lines, as defined in the code. I am trying to make the menu using a…
-
2
votes2
answers925
viewsQ: Validation of data in Javascript
I created some fields on my page and I’m trying to validate this data using js, but for some reason it’s not working, I just did a test in the first field. Follow my code in html and js, the…
-
1
votes2
answers82
viewsQ: Returning Added Data in a Dictionary
In my code I am asking the user to enter the note, n° of registration and frequency of 2 people. But I want to do this using dictionaries, so I declared the keys 'Nota', 'Matricula' and 'Freqüência'…