Posts by João Santos • 1 point
6 posts
-
-5
votes2
answers48
viewsA: What is the difference between using forwardRef or another prop to pass the reference?
In React there is only one way to pass ref to another component, which is with React.forwardRef. What the ui-material does is basically use React.forwardRef in the component. Code link on official…
reactanswered João Santos 1 -
0
votes1
answer69
viewsA: Ajax Javascript Post Authentication Failed
You can call a function called beforeSend (Before sending) in the AJAX method and set the header in this function. In requests with jquery ajax, it is also advisable to set the property contentType…
-
0
votes1
answer106
viewsA: My input only accepts one character at a time. And is repeating the same text for other Input
Instead of using the prop defaultValue, uses prop value in input. Cell: props => { return ( <input name="date" type="date" value={this.state.date} onChange={this.handleChange} style={{ width:…
-
-1
votes1
answer145
viewsQ: Media queries within nesting - Sass
I have a question, I am creating an application in React, so I am using SASS. But my doubt is related to SASS, if it is a good practice I insert media querie inside my css block. Example I’m doing…
-
0
votes0
answers778
viewsQ: Typeerror: this.props.user.map is not a Function - React Js
Hello, I’m training a little bit with the github api. I divided my component into a card (it has user information and etc) and in the view. I’m doing the fetchData in the view and rendering on a…
-
0
votes1
answer59
viewsQ: Popular Select with XML - Logic
Hello, I need to popular a select so that they are dynamic. The customer is a car site, IE, the user will be able to schedule the cars. my job is to popular select, however I am having difficulties…