react-master-guide

What Is React ?

A JavaScript library for building user interfaces πŸ† it is declarative


Setup React App On Local Machine

Install Node First https://nodejs.org/en/

npm update

npm install -g npm@latest

1.method using npm

npm init react-app tech-app
cd tech-app
npm start

2.method using npx

npx create-react-app tech-app
cd tech-app
npm start

3.method using npm vite

npm create vite@latest
cd tech-app 
npm install
npm run dev

const element = React.createElement(
  'h1',
  { className: 'greeting' },
  'Hello, world!'
);

You can write the same thing using JSX like this:

const element = <h1 className="greeting">Hello, world!</h1>;

module 1

  1. Hello World
  2. Introducing JSX
  3. Rendering Elements
  4. Components and Props
  5. State and Lifecycle
  6. Handling Events
  7. Conditional Rendering
  8. Lists and Keys
  9. Forms
  10. Lifting State Up
  11. Composition vs Inheritance
  12. Thinking In React

React Index File

Import export

"use strict";
ReactDOM.render( /*#__PURE__*/React.createElement("h1", null, "Welcome to react App"), document.getElementById('root'));

Short Code

rfc

rafc

https://medium.com/@alimubashar74/react-native-what-is-the-difference-between-functional-and-class-components-25b4920c1686

Getting Started with Create React App

This project was bootstrapped with Create React App.