Posts by Murilo Ribas • 106 points
6 posts
-
0
votes2
answers520
viewsA: Function with React Native parameters
It is not necessary to bind the function. It is also not necessary to use the keys when calling the function: onPress={ () => { this.buscarSubcategorias(item.id) } } Without them: onPress={ ()…
-
1
votes2
answers53
viewsA: Learning Javascript and Nodejs
When you want to make some kind of request or action that takes longer than normal (calling an API, for example), you need to configure whether this action will be necessary for future runs or not.…
-
1
votes4
answers178
viewsA: Doubt about React (props or state)
State is a variable that can only be manipulated by the component in which it is. If you want another component to also receive this state (for example, for a component with the feature to show the…
reactanswered Murilo Ribas 106 -
0
votes1
answer54
viewsA: How to redo this layout?
The use of float is considered outdated today. I recommend using the flex-box when your goal is to align items, as it is more accurate than the float. <style> .allContent { display: flex;…
-
0
votes2
answers945
viewsA: How to place images next to each other in columns?
I made an example with the same amount of images that you placed: <style> .w3grayscale { display: flex; justify-content: space-around; align-items: center; flex-flow: row nowrap; width: 100vw;…
-
1
votes1
answer220
viewsA: Error while installing React
The command you typed is in Portuguese, try again, but in English: npm i -g create-react-app