React JS
React is an Open Source JavaScript library used for creating dynamic and interactive user interfaces for mobile and web applications, specifically for single-page applications. It’s used for handling the view layer for web and mobile apps. React also allows us to create reusable UI components.
React Introduction
- React is a Javascript Library
- Its goal is to show some content(HTML) to users and handle user interaction
- React can work by itself
- But It can also work with a tremendous variety of other libraries, packages, servers and databases
React Components
React components are made using either Javascript functions or classes.
Components
- Building Blocks
- Composed of HTML, JavaScript and CSS
- Component name should start with upper case
- Functional Component and Class Component
Class Component
- Extends React.Component
- Constructor and Super
- State, Lifecycle and Event