React-Theory
React-Theory
ReactJS is one of the most popular JavaScript front-end libraries which has a
strong foundation and a large community.
--> React Native- with the help of it we can develop Mobile Application- Means can
work in IOS and Android in both.
-->Component - React is all about component. and every Component have their own
logic and design.
-> components --> components are the core building block of the
application .
-> every component have their own logic and design
-> Types of component
-> Function Component :- we can't manage state in function component. But in
react hooks 16.8 verson , we can manage states but we discuss later.
_________________________________
Note-Only one Element canbe default export bcoz we can change the name of default
export at the time of import but we cannot change name of name export.
When we export and import any component it is called Module
Module is a JS file which contains some content like variables, arrays, strings,
objects ,functions and classes etc. and we export these elements and import in
another file.
In JS there are 3 types of Modules-
1)Core Modules - eg. React, React-Dom etc.(built-in)
2)User-Defined Modules
3)Third Party Modules- eg. React Router Dom, Infinte Scroll Component,Redux,Saga
etc.
_________________________
<Myfunc />
-> Routing
function
class
-> props and state
-> routing
________________________________________