[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-489294-105":3,"detail-sidebar-cat-0-en-105":85,"doc-detail-489294-en":135,"doc-similar-489294":177},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":78,"head_meta":80,"extra_data":82,"updated_unix":84},105,"en","getting-started-with-react-react-fundamentals-and-setup-guide","Getting Started with React - React Fundamentals and Setup Guide","","React is an open-source front-end JavaScript library used to build dynamic, appealing user interfaces. The material explains what React is, how it differs from a framework, and how it renders components into the DOM using a virtual DOM approach. It introduces related concepts such as the Document Object Model (DOM) and JSX, then outlines practical ways to start using React, including running directly in HTML for testing and setting up an environment with Node.js, NPM, Vite, and creating a React app.",{"@graph":14,"@context":77},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/getting-started-with-react-react-fundamentals-and-setup-guide/489294/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/getting-started-with-react-react-fundamentals-and-setup-guide/489294.png","ImageObject",300,407,{"name":42,"@type":43},"SundayMiles","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-19","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",13,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69,73],{"name":60,"@type":61,"acceptedAnswer":62},"What is React, and what is it mainly used for?","Question",{"text":63,"@type":64},"React is an open-source front-end library for creating user interfaces in web applications. It focuses on rendering components to the DOM for rich UI experiences.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does React relate to the DOM and virtual DOM?",{"text":68,"@type":64},"The DOM is a structured in-memory representation of a web page. Instead of manipulating the browser DOM directly, React uses a virtual DOM to manage UI updates efficiently.",{"name":70,"@type":61,"acceptedAnswer":71},"What is JSX in React, and do you have to use it?",{"text":72,"@type":64},"JSX stands for JavaScript XML and lets you write HTML-like syntax in React. You can use React without JSX, but JSX makes it easier to write React applications.",{"name":74,"@type":61,"acceptedAnswer":75},"How can you start using React during learning or testing?",{"text":76,"@type":64},"You can begin by using React directly in HTML for getting started and testing. For real applications, install a React environment using Node.js and NPM, and optionally tools like Vite or an IDE such as Visual Studio.","https://schema.org",{"og:url":32,"og:type":79,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":81,"canonical":32},"index,follow",{"doc_id":83,"site_id":7},489294,1791106858,{"code":4,"msg":86,"data":87},"success",[88,92,96,100,105,109,114,119,124,127,131],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"Exam",70,"exam",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},5,"Comic",60,"comic",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":107,"slug":108},6,50,"technology",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},7,"Healthcare",40,"healthcare",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},8,"Research & Report",30,"research-report",{"id":120,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":122,"slug":123},9,"Religion & Spirituality",20,"religion-spirituality",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":122,"slug":126},"World Cup","world-cup",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":128,"slug":130},10,"Lifestyle","lifestyle",{"id":132,"doc_module":4,"doc_module_name":25,"category_name":133,"show_sort_weight":101,"slug":134},19,"General","general",{"code":4,"msg":86,"data":136},{"doc_id":83,"user_id":137,"nickname":42,"user_avatar":138,"doc_module":4,"category_id":106,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":139,"file_id":140,"file_url":141,"file_type":142,"file_size":143,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":144,"language":145,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":146,"faqs":147,"seo_title":148,"seo_description":12,"update_tm":149,"read_time":150,"preview_page_count":110,"preview_urls":151},1099529839202,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","[https://www.halvorsen.blog](https://www.halvorsen.blog)   \nGetting Started  \nwith React  \nReact is a front-end library for creating UI  \nHans-Petter Halvorsen  \nContents  \n•  Introduction to React  \n•  Getting Started with React  \n–  React Components and Props  \n–  React Events  \n•  Installing React Environment  \n–  Node.js and NPM  \n–  React + Vite  \n–  React App  \n•  React in Visual Studio  \n•  Other Matters  \n[https://www.halvorsen.blog](https://www.halvorsen.blog)  \nGetting Started with React  \nIntroduction to React  \nTable of Contents Hans-Petter Halvorsen  \nReact    \n• The React library is an open-source JavaScript library you can use to create dynamic and appealing applications with rich UI (User Interfaces) .  \n• Basically, React is a front-end library for creating UI.  \n• React is a frontend (client-side) JavaScript library, but you can also use TypeScript .  \n• React is a UI library that uses a virtual DOM to manipulate the web application's user interface .  \n React    \n• React is a front-end JavaScript library for building user interfaces in Web Applications .  \n• React is also known as “React.js” or “ReactJS”.  \n• Developed by Facebook in 2011. React is now free and opensource.  \n• React mainly focus on the user interface and rendering components to the DOM.  \n• Note! React is a “front-end Library“ and not a “Framework”.  \n– So, you typically need a Framework like Next.js or ASP.NET Core, etc.  \n• Homepage:  [https://react.de](https://react.dev)[v](https://react.dev).  \nDOM  \n• DOM-Document Object Model.  \n• The Document Object Model (DOM) connects web pages to scripts or programming languages by representing the structure of a documentsuch as the HTML representing a web page- in memory.  \n• The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects . DOM methods allow programmatic access to the tree. With them, you can change the document's structure, style, or content .  \n• The backbone of an HTML document is tags. According to the Document Object Model (DOM), every HTML tag is an object . Nested tags are“children” of the enclosing one. The text inside a tag is an object as well.  \n• JavaScript can change/manipulate the DOM.  \n• Instead of manipulating the web browser DOM directly, React creates a virtual DOM in memory.  [https://en.wikipedia.org/wiki/Document_Object_Model](https://en.wikipedia.org/wiki/Document_Object_Model)  \nJSX  \n• React uses something called JSX.  \n• JSX stands for “JavaScript XML”.  \n• JSX allows us to write HTML in React .  \n• JSX makes it easier to write and add HTML in React .  \n• You don’t need to use JSX, but JSX makes it easier to write React Applications.  \nReact Resources  \n• React Homepage: [https://react.dev](https://react.dev).  \n• React Quick Start:  [https://react.dev/learn](https://react.dev/learn) .  \n• React Tutorial: [https://www.w3schools.com/react/](https://www.w3schools.com/react/) .  \n• Tutorial: Create an ASP.NET Core app with React in Visual Studio:  \n[https://learn. microsoft.com/en](https://learn. microsoft.com/en)  \nus/visualstudio/javascript/tutorial-asp-netcore-with-react .  \n[https://www.halvorsen.blog](https://www.halvorsen.blog)  \nGetting Started  \nwith React  \nTable of Contents Hans-Petter Halvorsen  \nGetting Started with React  \n• You can start using React directly in HTML.  \n– This can be used getting started and for testing.  \n• For creating real React Applications you should install a React Environment on your computer.  \n– More about that later in this tutorial.  \n– You can then use NPM (Node Package Manager) which is included with Node.js .  \n– You can also use a build tool like Vite.  \n– You can also use Visual Studio to create an React App.","cbCail3NHZRFUj6L","https://ap.wps.com/l/cbCail3NHZRFUj6L","pdf",3044868,69,"English","# Introduction to React\n## React and its purpose\n## DOM and virtual DOM\n## JSX basics\n# Getting Started with React\n## Start with React in HTML\n## Install a React environment\n## Node.js and NPM\n## React + Vite\n## React App setup\n## React in Visual Studio","[{\"question\":\"What is React, and what is it mainly used for?\",\"answer\":\"React is an open-source front-end library for creating user interfaces in web applications. It focuses on rendering components to the DOM for rich UI experiences.\"},{\"question\":\"How does React relate to the DOM and virtual DOM?\",\"answer\":\"The DOM is a structured in-memory representation of a web page. Instead of manipulating the browser DOM directly, React uses a virtual DOM to manage UI updates efficiently.\"},{\"question\":\"What is JSX in React, and do you have to use it?\",\"answer\":\"JSX stands for JavaScript XML and lets you write HTML-like syntax in React. You can use React without JSX, but JSX makes it easier to write React applications.\"},{\"question\":\"How can you start using React during learning or testing?\",\"answer\":\"You can begin by using React directly in HTML for getting started and testing. For real applications, install a React environment using Node.js and NPM, and optionally tools like Vite or an IDE such as Visual Studio.\"}]","Getting Started with React - React Fundamentals and Setup Guide | PDF",1790822021,174,[152,156,159,163,166,170,174],{"page_no":22,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/44cf4e8b11a34b1518b2859120414d2d.webp",983,552,{"page_no":26,"url":157,"width":158,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0982cf6d32ba6ee95ad61d54ea0f9ee0.webp",982,{"page_no":30,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/554b423684d94de754b8a2033bf661b8.webp",981,551,{"page_no":33,"url":164,"width":165,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/424c8d7da3487de9e36bc5902edec24b.webp",980,{"page_no":101,"url":167,"width":168,"height":169},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/d4677855ee137e8b35b7a55dd7d512b3.webp",979,550,{"page_no":106,"url":171,"width":172,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e8993d3a7343ccece29f2ff7a8b7b524.webp",978,549,{"page_no":110,"url":175,"width":176,"height":173},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/937e8c418a4a3dc2d37ae13de1441b50.webp",977,{"list":178,"token":11},[179,186,192,198,205,211,217,223,229,236],{"doc_id":180,"doc_title":181,"file_type":142,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},489296,"SSUI-11-12-React - React for JavaScript","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988879/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=XbOYTsT7A0VhicPVNPcSN0a9Fe0%3D","ssui-11-12-react-react-for-javascript",11,1790822029,{"doc_id":187,"doc_title":188,"file_type":142,"home_preview_img_url":189,"slug":190,"view_count":30,"category_name":29,"create_tm":191},692283,"Learning React - Second Edition - A Hands-On Guide to Building Web Applications Using React and Redux","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003186963/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=d7DLWMaYifFcTMPAWjjLusGlWO4%3D","learning-react-second-edition-a-hands-on-guide-to-building-web-applications-using-react-and-redux",1794192412,{"doc_id":193,"doc_title":194,"file_type":142,"home_preview_img_url":195,"slug":196,"view_count":30,"category_name":29,"create_tm":197},692285,"React Fundamentals - A Beginner’s Guide to JavaScript, TypeScript, HTML, and CSS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003187007/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2BegknivEMQboSjvuSjBhA89FRMo%3D","react-fundamentals-a-beginners-guide-to-javascript-typescript-html-and-css",1794192415,{"doc_id":199,"doc_title":200,"file_type":142,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":29,"create_tm":204},489293,"The Ultimate React Handbook - Introduction - Starter Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988787/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=1ir8MXfiIzIXkkzA1LhVDLQvAio%3D","the-ultimate-react-handbook-introduction-starter-guide",14,1790822020,{"doc_id":206,"doc_title":207,"file_type":142,"home_preview_img_url":208,"slug":209,"view_count":110,"category_name":29,"create_tm":210},692311,"Node.js Course","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230003200153/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=PqWXpMM3FEGxjPWFC%2FUEyxUlVSE%3D","nodejs-course",1794192942,{"doc_id":212,"doc_title":213,"file_type":142,"home_preview_img_url":214,"slug":215,"view_count":22,"category_name":29,"create_tm":216},759801,"The Node.js Handbook - Introduction to Node.js","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044485168/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=re1ruq0MLBeF1ia0LlNPLy6cOMc%3D","the-nodejs-handbook-introduction-to-nodejs",1795895118,{"doc_id":218,"doc_title":219,"file_type":142,"home_preview_img_url":220,"slug":221,"view_count":22,"category_name":29,"create_tm":222},759796,"Microservices with Node.js","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044484999/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=cF4GjGebheqIMKgBVxllLQoJixo%3D","microservices-with-nodejs",1795895075,{"doc_id":224,"doc_title":225,"file_type":142,"home_preview_img_url":226,"slug":227,"view_count":26,"category_name":29,"create_tm":228},703140,"Learning React - Second Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013412848/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=vgaajRrcqT3hBPC4NEqOhNhCnWc%3D","learning-react-second-edition",1794561432,{"doc_id":230,"doc_title":231,"file_type":142,"home_preview_img_url":232,"slug":233,"view_count":234,"category_name":29,"create_tm":235},489329,"Become a ninja with Vue - free sample","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926991859/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=%2FvGPCPNACVDRZveaQK134ZJVPiM%3D","become-a-ninja-with-vue-free-sample",12,1790822270,{"doc_id":237,"doc_title":238,"file_type":142,"home_preview_img_url":239,"slug":240,"view_count":101,"category_name":29,"create_tm":241},489292,"Generating Your Own React Project Template - Tutorial Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926988674/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=fh7Ehu12lYpXXK8VX4udOP2VBvo%3D","generating-your-own-react-project-template-tutorial-guide",1790822014]