SIZ Education || React Native Tutorial 02 || By @ramzanbaow

in hive-181430 •  3 years ago 

Asslam-u-Alaikum

Hopefully you are doing great my steemit friends.
I welcome you for the second time in my tutorial 2. I hope you will like my second tutorial.

image.png

In this tutorial we will talk about how many types of react native components there are and how they work.

Today we are going to talk about types of react native which are of two types.

  1. Class Component
  2. Function Component

Now we will discuss these components in detail with code example.

Class component:
• Class components are slightly complex.
• It has render function and constructor.
• We can also use Life cycle methods.
• The class component also has a lot of advanced things.
• Class Component does not have to install any external libraries.

image.png

image.png

image.png

Functional component:
• Function components are very simple, they work like a function and look very small.
• We can’t use Life cycle methods directly.
• We have to use Hooks and we will discuss hooks in next tutorial.
• Functional component have no advance thing.

image.png

image.png

Sometime a big developer have multiple errors. He does not stuck even that he resolves that. Finding errors is also a learning method.
Previously, react native used class component, but now uses the functional component.

image.png

image.png

Bundle of thanks to Sir @cryptokraze and @siz-official who give us chance to show our hidden talent in multiple ways.

Thank you so much. If you like this tutorial post of mine, you will definitely appreciate me. Hopefully that you support me so much.


JOIN STEEM INFINITY ZONE COMMUNITY

Regards: @ramzanbaow

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Its really amazing and informative post. I really like and appreciate your hard work. Keep it up

Good tutorial. Its very useful for us. We learn from your work

Wow second tutorial is come
Very informative post

Yes, and I hope you learn a lot.
And the point of my post is that you guys get a lot out of it.

Very informative post bro.
keep it up