Posts by Giovane de Loredo • 109 points
8 posts
-
1
votes3
answers5865
viewsA: How to pass a function to another component through props?
This problem occurs because the context is broken, you can read more here. Briefly, ALWAYS use bind in the manufacturer for all its functions: constructor(props) { super(props); this.handleChange =…
-
0
votes3
answers4761
viewsA: Restrictions in the React text field
As already answered by colleagues, it is possible to solve the problem in a "manual" way using regex, however, to maintain a more organized and consistent project, I recommend using specific…
-
3
votes2
answers58
viewsA: Creation of local server with express
This is wrong: As far as I know, the express function on line two comes along with the module import. For something to be available in a file it needs to be explicitly imported. That said, you…
-
0
votes1
answer308
viewsA: Update Table automatically when deleting the record
I see two possibilities: Create a copy of the status users, remove the deleted record and update the status with the new object; Make a new request every time a record is deleted, bringing the…
-
1
votes1
answer65
viewsA: How does general untying work after entering a system using Social Networks?
As you have already said, usually the information that causes break in this situation is the Password, because the others theoretically are saved in the BD of your system. Most systems do not offer…
-
0
votes1
answer299
viewsA: React asynchronous useState
The best way to solve this problem is with the useEffect hook, causing it to watch the data_filter state and only fire the setData after the update has been completed. Would look like this: function…
reactanswered Giovane de Loredo 109 -
1
votes1
answer229
viewsA: State returning Undefined
The problem is in your useEffect. It may seem strange, but it is not possible to do the useEffect function asynchronously like this. That being said, the error is occurring precisely because the…
-
0
votes3
answers534
viewsA: Using Dashboard Bootstrap Theme with React js
The ideal would be to use some solution built with React, such as React Bootstrap (v3 and v4) or reactstrap (v4). Mixing "not React" and jQuery components with React components - and probably other…