DEV Community

hamzajadoon
hamzajadoon

Posted on • Edited on

#30DaysOfReactLearning

I have started the #30DaysOfReactLearning challenge where I am learning React for 30 days, Why React? it is Fast, React uses Virtual DOM that only updates the changes which have been made on the website. It is simple, React uses JSX which makes the application simple to code and understand. React has one of the biggest communities out there to help you and the good thing about it is that you can contribute to the community.
React is in demand it is used by big tech giants such as Facebook, Google, Tesla, etc. one of the really cool things about React which I really like is that you can use CSS, HTML, and JavaScript together.
Components in React are used to help developers to reuse the code, there are two different types of Components in React, Functional and Class. A Functional component is a simple JS function:
function Age(){ return

My age is 22

;}. To render a component we create JSX elements which then display the functional component. Remember! Every component name should start with a capital letter.
Class Components are used to create advanced UI like forms and animations. In order to make it work Class Components needs to extend the React.Component class.

This is just the beginning as I learn more and more I will be sharing my knowledge.

Top comments (0)