Excellent work.
And up next, we have performance optimization.
More specifically, we're going to cover react and more function.
You should call back hook and then use Memmo Hook as well.
Now, before we go any further, let me just be very, very clear where I purposely added this topic
to be our last one.
Why?
Because react is fast by default.
Again, let me repeat.
React is fast by default.
And what I mean by that is just because you have these tools to optimize the performance of your app
doesn't mean that you need to run over to your to do list app and start optimizing.
That's not how it works.
Now, I did include it and by the way, I was debating back and forth.
I almost skipped it.
But I did include it in editorial because I wanted you to be aware of these functions and hooks and
how they work.
But it doesn't mean that you need to use them in your apps.
Yes, there are some specific use cases where they are useful.
But trust me when I say this, just because Twitter Gurel says that you need to apply these optimizations,
you have to do it.
No react as fast by default.
And when it comes to optimisations, they do their own costs.
So it's not like it's a free ride where we just have these magic functions and everything works like
features.
They do use the memory.
They do use the competition power.
So be mindful when you actually use them.
During the videos, I will mention term memorialising and that is not my term.
That is not react.
That is a computer science term, which just means that we're caching results.
And I'll simplify it even more during videos where I'll say, remember, we're remembering the value.
Just keep in mind what the official naming is, because, of course, remembering is something that
I added because I thought that we should simplify this memorizing term.
And then lastly, if you don't trust me.
If you think that everything that I'm saying is gibberish and that you should use all of these functions,
I would suggest going to your favorite search engine and just type use callback or use Memmo and then
type count.
And you should get the article by Kent Dods, where essentially he talks about when you should use Mammo
and use Kovalchuk.
And there's not much to add there.
He just lays out step by step why you shouldn't go crazy, would use Memmo and use callback.
OK, so that's what we're going to cover next.
There's going to be, of course, an example.
Now, I created that example with the specific purpose.
Again, it's not normally where you would use these optimizations, but since I wanted you to have an
idea of how they work and where you can use them, that's why I created.
So we get a good practice on the Ariake memo as well as use callback and use memo.