1. REACT JS COCEPT
• BASIC STRUCTURE OF REACTJS AND ITS CONCEPT:
• Javascript library
• React is used to build single-page applications.
• React allows us to create reusable UI components.
• import React from 'react';
• import ReactDOM from 'react-dom/client';
• function Hello(props) {
• return <h1>Hello World!</h1>;
• } const root = ReactDOM.createRoot(document.getElementById("root"));
• root.render(<Hello />);
• IN HERE render React कौम्पोनॅन्ट एक render() मेथड लागू करते हैं जो इनपुट डेटा लेता है
और यह दिखाता है कक क्या प्रिर्शित करना है। यह उदाहरण XML- जैसे ससिंटैक्स का उपयोग
करता है जजसे JSX कहा जाता है। इनपुट डेटा जजसे कौम्पोनॅन्ट में पास ककया जाता है, उसे
this. props क
े माध्यम से render() द्वारा एक्सेस ककया जा सकता है।
2. • npm start
• Starts the development server.
• npm run build
• Bundles the app into static files for production.
• npm test
• Starts the test runner.
• npm run eject
• Removes this tool and copies build dependencies, configuration files
• and scripts into the app directory. If you do this, you can’t go back!