i didn't know that we could pass a function inside the set function of useState. this thengang is so amazing that I learn new stuff with him even after taking 2 react native courses.
Hey! Thank you very much for these great videos! I know you haven't finished the tutorial yet, but you could also consider creating content about the use of animations!
A great series but something i would like to point out at 2:55 is that in react you should avoid creating inline functions to avoid performance issues. Its much encouraged to create a child component and pass a value to the child and then pass the onpress callback with id from the child component back to the parent. The reason why this causes performace issues is because of how data structures work. It causes the garbage collector to be invoked very often and this will cause performance issues especially when you have components with many state changes.
Thank you, ninja! I'd really like to see a tutorial about the best way to pick up a new technology since you have mastered so many. Maybe a generalised version of your methods or plan to get fast on track as a senior developer. Do you just read the documentation? Do you watch any tutorials just like us or you are lead by your intuition ? What type of intuition should a developer develop?
In 5:16, how did he just randomly choose the variable name "prevPeople". Where did this variable come from and how does the program now its the previous state of the people variable?
is it the filter method that delete the item that have the same id as the one we click? or we ask the program to return only the item that does not have the same id, as the one that we click? Thank you in advance!
Why can't we directly call the Presshandler function in the OnPress Prop? Why do we have to call an anonymous function first which in turn will call the PressHandler function?
Thought I might throw this in here, if anybody can help me. I want to change the pressHandler so that if I change a name, it is changed to 'teddos' but the other names remain the same. The emulator now says 'Can't find variable setPeople'. const pressHandler = (id) => { setPeople( (prevPeople) => { return prevPeople.forEach(element => { if (element.id == id) { element.name = 'teddos'; } }); }) }
-What is React-Native?
-It's a bunch of built-in Components. :D
Thank You, Shaun, for these awesome straightforward tutorials.
Fu*k off with these spams d!ckhead.
i didn't know that we could pass a function inside the set function of useState. this thengang is so amazing that I learn new stuff with him even after taking 2 react native courses.
you are the best of the best out there, plz keep doing whatever you're doing cause i dont know what I'll do without you.
I will keep on Saying thank You, to you my Broo For Everything!!!! Big Up Broo
👍👍👍👍
An impressive way of teaching brother...hats off!!
Great programming & teaching skills! Thank you for sharing!
Hey!
Thank you very much for these great videos!
I know you haven't finished the tutorial yet, but you could also consider creating content about the use of animations!
Thank you very much!
Ok, i think we need a link to pay the entire course hahaha i cant wait
A great series but something i would like to point out at 2:55 is that in react you should avoid creating inline functions to avoid performance issues. Its much encouraged to create a child component and pass a value to the child and then pass the onpress callback with id from the child component back to the parent.
The reason why this causes performace issues is because of how data structures work. It causes the garbage collector to be invoked very often and this will cause performance issues especially when you have components with many state changes.
Hey dude, you’re awesome. I don’t know how many appreciation comments you get, but I’m sure it’s not enough.
Thanks Guilherme :)
Thank you, ninja! I'd really like to see a tutorial about the best way to pick up a new technology since you have mastered so many. Maybe a generalised version of your methods or plan to get fast on track as a senior developer. Do you just read the documentation? Do you watch any tutorials just like us or you are lead by your intuition ? What type of intuition should a developer develop?
it was really helpful . thank you so much :)
Great tutorial at all! Thank you Ninja!
Best react native series!!!!
Best Teacher in the world !!
Really informative
🔥🔥🔥
4:24
Could we just call pressHandler directly instead of using an arrow function?
onPress = {pressHandler(item.id)}
it will run automatically.
Is it necessary to use prevPeople or can you just setPeople(people.filter(function here))?
i did just that and it works
I was gonna ask same question. filter doesn't affect prevstate
where iis the next videossss ?????? Love it !!!! AMZAAAAZINGGGGGGG.
Great Shaun, Best Teacher!!
Omggg!!!!!! Thanks! I am from Brazil :)
thank you very much
very helpful. i want to know how do you make touchableOpacity totouch only one list in the array?
Simpliy is great
I didn't get prevPeople variable. Where did you define? is it parameter?
In 5:16, how did he just randomly choose the variable name "prevPeople". Where did this variable come from and how does the program now its the previous state of the people variable?
Wow❤️
is it the filter method that delete the item that have the same id as the one we click? or we ask the program to return only the item that does not have the same id, as the one that we click? Thank you in advance!
Why not just do
setPeople(people.filter(person=>person.id!==id));
this is what i did also :)
A question came into my mind is it possible this app can be run on ios and android both ?
Why can't we directly call the Presshandler function in the OnPress Prop? Why do we have to call an anonymous function first which in turn will call the PressHandler function?
What's the name of your VS Code color theme? I want it! haha
Can we animate the item removal from the list?
Hi, I am hoping some kind soul can elighten me,
prevperson seems very arbitrary. When was it assigned the current person state?
Yeah you don't need it. You can just do setPeople(people.filter(person => person.id !== id));
What font is that?
when im click any button i getting this " Error: "setPeople" is read only " , how can i fix this
hello Sr please make a tutorial on sending notification with react native
NICE
4:15
Why not just use: people.filter(item => item.id !== id); ?
Thought I might throw this in here, if anybody can help me. I want to change the pressHandler so that if I change a name, it is changed to 'teddos' but the other names remain the same. The emulator now says 'Can't find variable setPeople'.
const pressHandler = (id) => {
setPeople( (prevPeople) => {
return prevPeople.forEach(element => {
if (element.id == id) {
element.name = 'teddos';
}
});
})
}
tHANKS XD
i like video
supppper brother.
you need to keep ur accent neutral so tht person of every region can understand
what a jerk
4:00