Getting Started with React.js
Day 1
What is React?
Why use React?
Key features
React.js is a JavaScript library for building user interfaces.
React apps are made out of components. A component has it's own logic and appearance.
React components are JavaScript functions which returns markup.
React allows developers to build web applications that can update and render efficiently in response to data changes.
Key features include the virtual DOM, component-based architecture, and unidirectional data flow.
const App = () => {
return <h1>Hello React!</h1>
}
Q: How do we identify that it is a react component?
Ans: Every react component must always start with a capital letter, while HTML tags must be lowercase.