Posts by Leandro Budau de Moraes • 84 points
12 posts
-
1
votes1
answer125
viewsA: How to compare 2 arrays and return the equal values within them?
Just compare what I ended up doing during the second increment. See if this fits you. Another thing, it would be interesting you replace the variable statement var for const or Let. In case your…
javascriptanswered Leandro Budau de Moraes 84 -
1
votes1
answer50
viewsA: React/Redux - Function connection
You are doing it wrong. You should create a Hooks for this since you are using the functional React. First, you should create a Hooks for the purpose of making a Rest request, because to check…
-
0
votes1
answer97
viewsA: Text does not appear using React Hooks with Redux
Actually, I think you’re riding it wrong. I will try to do a step by step for you. The error is not in useSelector. You are using it correctly. The problem is that what useSelector is trying to…
-
-1
votes1
answer272
viewsA: Return fetch js result on a global variable
The variable products is a javascript object. Javascript object contains only key and value. const products = { chave1: 'valor1', chave2: 'valor2' } In this case, the value of the keys can be string…
-
1
votes1
answer113
viewsA: Overlay the clickable area of a button on the page contents
Set a width in the css properties . Fixed-button or change its display pattern to display-inline. This resolves. fixed-button { display:inline-block } or fixed-button { width: 150px; // por exemplo,…
-
1
votes1
answer133
viewsA: How to change the ip of Mongo for external access
You must put the protocol mongodb:// Otherwise it doesn’t work, but it’s right what you did, that’s all it needs. Here’s a possible example that might suit you:…
-
0
votes1
answer164
viewsA: Redux, how to access store state variables in functions
As was said the idea of the React-Redux is the same. To access the store in your components you need to connect to the store and map the state of the store you need. This is done with the Redux…
-
0
votes1
answer94
viewsA: Pass props to React grandson component
You should not run it on the button, because function is based on memory reference, so your cpfPresentation should be as follows: CpfPresentation.jsx export default funciton CpfPresentation(props) {…
-
0
votes1
answer193
viewsA: (React) Bootstrap overwriting my css
These libs are not component-oriented, so you should call it once in the main file of your webpack. Normally this file would be the app.js.
-
0
votes1
answer417
viewsA: Check User login React Navigation
You need to use React-Redux for this or React-context. When logging into the login screen the server must forward you a token. - Armezene the token in localStorage - create a function that when…
-
0
votes1
answer44
viewsA: There is something wrong with creating an React project
To ensure all possibilities, do the following. Clear the Node cache npm cache clean Then uninstall the create-React-app from your global module npm uninstall create-next-app -g Delete your…
-
0
votes2
answers594
viewsA: I’m not able to put my text on the right side of the site
In better practices this way of making tags available is not very recommended, since it corresponds to a menu. You should use the UL tag and within each LI put your links, tag A. This is because it…