Hi and welcome to this video on React Native tutorial.
This section is made for anyone
who doesn't have any experience in react and has never used functional components.
So if you don't know what hooks are
and you've never used it, then this section is for you.
Otherwise, just feel free to skip this section.
So now let's talk about functional components and class based comments.
We're going to be discussing why we might
want to use functional components and what kind of functions come with them.
Functional components are the simplest way to create a react native component.
They're defined as a JavaScript function that returns a react native component.
And functional components are lightweight and fast.
They're easy to test and debug.
They're also easier to understand and write than class based components.
So this makes it a great choice for beginners.
Class based components are defined as class that extends the react component
class, and they allow for including lifecycle methods.
So if you're needing a lifecycle method, then you could use class based components,
but also you could replace the lifecycle methods using hooks in React Native.
And we are going to be discussing this at the end of our section.
So functional components come
with a number of built in functions that can help us with building our apps.
This includes hooks such as Use State, Use Effect, Useref and more.
They allow us to add state and side effects to our components.
In conclusion, functional components and class based
components are both important tools for building React native apps.
In upcoming videos for this section,
we'll dive deep into exploring how functional components can help us build
better apps and what kind of functions come with them.
Thank you for watching and see you in the next video.