Posts by fullstack-overkill • 161 points
14 posts
-
1
votes1
answer63
viewsA: Can the use of many variables in the CSS affect page performance?
I’ll split the answer into two parts, come on First: Yes can and a lot. Performance can vary between various factors, Relate the item; Number of children a variable meets; If it is used in a div…
-
0
votes1
answer25
viewsA: What best practice to create a user table?
I’ll summarize that and attach some reference materials; let’s go there In a project for study and practice, having a table for users with their information will speed up their development, -…
-
0
votes1
answer48
viewsA: I wish to do an Hide and show on Divs, with jquery. How can I do this?
We have two ways to deal with this problem, so let’s go First: Let’s create a class in our css .hide{ display: none; } And in jquery $("#red").click( ()=> { $(this).toggleClass("hide"); }); This…
jqueryanswered fullstack-overkill 161 -
0
votes3
answers77
viewsA: Pass two variables together with the form through the ajax
So come on, I’ll split the answer into two parts First: To send the ajax we will use a format called JSON, for it to be valid we need some things He must be among { } { } Properties should be…
-
2
votes1
answer181
viewsA: Animation of Css link
Come on, I’ll split the answer into two parts First: Transition may receive a property such as parameter, as for example the color property { transition: color .4s; } If she does not receive any…
-
0
votes5
answers631
viewsA: If Else with functions
Short answer: Yes it is possible to use, and there are several forms, being one of them: if (day == 1){ (function(){ alert() })() } Long answer: What you want is called anonymity, which is nothing…
-
1
votes4
answers178
viewsA: Doubt about React (props or state)
Come on, I’ll give you an example and then explain separately ok ? okay Example Know in html when you call the img tag created by me outside the component <imgMy img="./SUaimg.jpg"…
reactanswered fullstack-overkill 161 -
0
votes5
answers388
viewsA: How to exclude only a certain data from a React state
As our friend Gleidson Henrique commented his question is not clear but I will try to help as I understand. You have a constant within the Right State ? Take as an example this my button state…
-
2
votes2
answers669
viewsA: How to change parent element attribute from within child
From what I understand you want to change an element of the father inside the son ? If yes we go there ! Element I want to change <h1>{this.sate.texto}</h1> In the father you would…
-
0
votes3
answers5865
viewsA: How to pass a function to another component through props?
https://pt-br.reactjs.org/docs/faq-functions.html You can on the child use : this.props.NomeDaFunc(Parametro1) In the father you use: <SeuComponente NomedaFunc={ this.NomeDaFunc.bind(this) }…
-
0
votes1
answer227
viewsQ: What are Django’s view, serializer and model settings?
I’m studying the 'Django' and would like to understand the definitions view, serialize and model and which route between them. Thank you
-
1
votes2
answers7589
viewsA: How to pass parameters via url to an application in React?
You have to do the internal route in React https://medium.com/collabcode/roteamento-no-react-com-os-poderes-do-react-router-v4-fbc191b9937d…
-
3
votes2
answers3004
viewsQ: How to open a local server using Node?
I want to open a local server to test my project on Reactjs, but I want to see it both locally on my machine and on another computer. I have to open some door? Edit: Both using the same network.…
-
-1
votes2
answers148
viewsQ: How to create a "Line Counter" in a texbox
I wish I could count the lines Visual Code, Atom or any such publisher. Follow an example image Details: My project runs in c# form, one of the Forms would have a txtbox with the line counter. I’ll…