{"id":14740,"date":"2024-02-13T12:06:50","date_gmt":"2024-02-13T08:36:50","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=14740"},"modified":"2024-02-17T10:35:48","modified_gmt":"2024-02-17T07:05:48","slug":"what-is-react-js","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/what-is-react-js\/","title":{"rendered":"What is React.js?"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">Introduction<\/h2>\n<p>Today, front-end frameworks and libraries are becoming an essential part of the modern web development stack. React.js is a front-end library that has gradually become the go-to framework for modern web development in the JavaScript community.<\/p>\n<h2 id=\"react-js-%da%86%db%8c%d8%b3%d8%aa%d8%9f\">What is React.js?<\/h2>\n<p>React.js is an open source JavaScript library carefully crafted by Facebook that aims to simplify the complex process of building interactive user interfaces. Think of a user interface built with React as a collection of components, each responsible for outputting a small, reusable piece of HTML code.<\/p>\n<p>In React, you develop your applications by creating reusable components, which you can think of as independent Lego blocks. These components are individual pieces of a final interface that, when assembled, form the entire user interface of your application.<\/p>\n<p>React&#039;s primary role in an application is to manage the view layer of that application by providing the best and most efficient rendering implementation, much like the V in the Model-View-Controller (MVC) pattern. Instead of addressing the entire user interface as a single unit, React.js encourages developers to break down these complex user interfaces into individual reusable components that form the building blocks of the entire user interface. In doing so, the ReactJS framework combines the speed and efficiency of JavaScript with a more efficient way to manipulate the DOM to render web pages faster and create highly dynamic and responsive web applications.<\/p>\n<h2 id=\"%d8%aa%d8%a7%d8%b1%db%8c%d8%ae%da%86%d9%87-%d9%85%d8%ae%d8%aa%d8%b5%d8%b1%db%8c-%d8%a7%d8%b2-react-js\">A brief history of React.js<\/h2>\n<p>In 2011, Facebook had a large user base and was faced with a challenging task. It wanted to provide a richer user experience to its users by creating a more dynamic and responsive interface that was faster and more efficient.<\/p>\n<p>Jordan Walk, a software engineer at Facebook, created React to do just that. React simplified the development process by providing a more organized and structured way to create dynamic, interactive user interfaces with reusable components.<\/p>\n<p>Facebook&#039;s News Feed was the first to use it. With its revolutionary approach to DOM manipulation and user interfaces, React dramatically changed Facebook&#039;s approach to web development and quickly became popular in the JavaScript ecosystem after its release to the open source community.<\/p>\n<h2 id=\"react-js-%da%86%d9%87-%da%a9%d8%a7%d8%b1%db%8c-%d8%a7%d9%86%d8%ac%d8%a7%d9%85-%d9%85%db%8c-%d8%af%d9%87%d8%af%d8%9f\">What does React.js do?<\/h2>\n<p>Typically, you request a web page by typing its URL into your web browser. Your browser then sends a request for that web page, which your browser serves. If you click a link on that web page to go to another page on the website, a new request is sent to the server to get that new page.<\/p>\n<p>This back-and-forth loading pattern continues between your browser (client) and the server for every new page or resource you try to access on a website. This typical approach to loading websites works well, but consider a very data-intensive website. Reloading the entire web page back and forth would be redundant and create a poor user experience.<\/p>\n<p>Furthermore, when data changes in a traditional JavaScript application, it requires manual manipulation of the DOM to reflect those changes. You have to identify which data has changed and update the DOM to reflect those changes, which results in a page reload.<\/p>\n<p>React takes a different approach by allowing you to build what is known as a Single Page Application (SPA). A Single Page Application loads a single HTML document on the first request. It then updates the specific section, content, or body of the web page that needs updating using JavaScript.<\/p>\n<p>This pattern is known as client-side routing because the client does not have to reload the entire web page every time the user makes a new request to get a new page. Instead, React breaks down the request and fetches only the parts that need to change, making the changes without having to reload the entire page. This approach results in better performance and a more dynamic user experience.<\/p>\n<p>React relies on a virtual DOM, which is a copy of the real DOM. React&#039;s virtual DOM is immediately reloaded to reflect the new change whenever there is a change in the data state. React then compares the virtual DOM to the real DOM to figure out exactly what has changed.<\/p>\n<p>React then finds the least expensive way to patch the actual DOM with that update without rendering the actual DOM. As a result, React components and UIs reflect changes quickly because you don&#039;t have to reload the entire page every time something is updated.<\/p>\n<h2 id=\"%d9%86%d8%ad%d9%88%d9%87-%d8%a7%d8%b3%d8%aa%d9%81%d8%a7%d8%af%d9%87-%d8%a7%d8%b2-react-js\">How to use React.js<\/h2>\n<p>Unlike other frameworks like Angular, React doesn&#039;t impose strict rules on code conventions or file organization. This means that developers and teams are free to set the conventions that work best for them and implement React however they see fit. With React, you can use as much or as little of it as you need because of its flexibility.<\/p>\n<p>Using React, you can create a button, a few pieces of an interface, or your entire app&#039;s UI. You can gradually adopt and integrate it into an existing application with some interactivity, or better yet, use it to build powerful React apps from the ground up, depending on your needs.<\/p>\n<h2 id=\"%d8%a7%d8%af%d8%ba%d8%a7%d9%85-react-%d8%af%d8%b1-%db%8c%da%a9-%d9%88%d8%a8-%d8%b3%d8%a7%db%8c%d8%aa-%d9%85%d9%88%d8%ac%d9%88%d8%af\">Integrating React into an existing website<\/h2>\n<p>When you\u2019re looking to add dynamic interactivity to your website, React is a great choice. By integrating React, you can create reusable, interactive components that can be placed anywhere on your site, such as sidebars or widgets. Here\u2019s a simple breakdown of the steps to achieve this.<\/p>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-1-%d8%a7%d9%81%d8%b2%d9%88%d8%af%d9%86-%d8%a7%d8%b3%da%a9%d8%b1%db%8c%d9%be%d8%aa-%d9%87%d8%a7%db%8c-cdn-%d8%a8%d9%87-html\">Step 1: Add CDN scripts to HTML<\/h2>\n<ul>\n<li>Start by adding the React core library API from the CDN to your website&#039;s HTML index file.<\/li>\n<li>Then import the React DOM from the CDN. This is necessary to render the components to the Document Object Model (DOM).<\/li>\n<li>Next, add Babel from the CDN, which translates React code to ensure compatibility between browsers. Also, don&#039;t forget to upload your React component file.<\/li>\n<\/ul>\n<p>The first step is to add two main CDN scripts to your website&#039;s HTML index file. You&#039;ll need these scripts to load React into your application via the CDN service.<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;script src=\"https:\/\/unpkg.com\/react@17\/umd\/react.development.js\" crossorigin&gt;&lt;\/script&gt;\r\n&lt;script src=\"https:\/\/unpkg.com\/react-dom@17\/umd\/react-dom.development.js\" crossorigin&gt;&lt;\/script&gt;\r\n&lt;script src='https:\/\/unpkg.com\/babel-standalone@6.26.0\/babel.js'&gt;&lt;\/script&gt;\r\n&lt;script type=\"text\/babel\" src=\"like_widget.js\"&gt;&lt;\/script&gt;\r\n<\/code><\/pre>\n<\/div>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-2-%d8%b9%d9%84%d8%a7%d9%85%d8%aa-%da%af%d8%b0%d8%a7%d8%b1%db%8c-%d9%85%da%a9%d8%a7%d9%86-%d8%b1%d9%86%d8%af%d8%b1-%d8%af%d8%b1-%d9%88%d8%a8-%d8%b3%d8%a7%db%8c%d8%aa\">Step 2: Mark the render location on your website<\/h2>\n<p>Determine the location in your HTML where the React component will be rendered. This can be done by adding an element &lt;div&gt; It did so with a unique identifier, which we will reference in our React code.<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;!-- ... Your existing HTML markup ... --&gt;\r\n&lt;div id=\"like_widget_container\"&gt;&lt;\/div&gt;\r\n&lt;!-- ... Your existing HTML markup ... --&gt;\r\n<\/code><\/pre>\n<\/div>\n<h2 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-3-%d8%b3%d8%a7%d8%ae%d8%aa-%da%a9%d8%a7%d9%85%d9%be%d9%88%d9%86%d9%86%d8%aa-react\">Step 3: Build the React component<\/h2>\n<ul>\n<li>Create a React component in this case called like_widget.js.<\/li>\n<li>This component will have a simple function that returns a JSX statement that renders the message \u201cHello World\u201d.<\/li>\n<li>With the help of ReactDOM, we then render this component to the DOM, targeting the unique ID we set earlier in our HTML.<\/li>\n<\/ul>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ Custom React component function that returns a JSX syntax\r\nconst ActualWidget = () =&gt; Hello World;\r\n\/\/ Select the container\r\nconst container = document.getElementById(\"like_widget_container\");\r\n\/\/ Render the component to the DOM\r\nReactDOM.render(, container);\r\n<\/code><\/pre>\n<\/div>\n<p>If you run the program, it will display \u201cHello World\u201d to the browser at the exact spot you marked in the image below.<\/p>\n<p><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"624\"  height=\"60\"  class=\"aligncenter wp-image-14741 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 624px) 100vw, 624px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_.webp 624w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-300x29.webp 300w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-110x11.webp 110w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-200x19.webp 200w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-380x37.webp 380w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-255x25.webp 255w, https:\/\/cdn.itpiran.net\/2024\/02\/13114542\/What-Is-React.js_-550x53.webp 550w\" ><br \/>\nYou may have noticed a strange syntax called JavaScript XML (JSX) returned by the ActualWidget function. You use JSX with React to easily combine HTML and JavaScript. Facebook developed JSX as a syntax extension for JavaScript to extend the functionality of HTML by embedding it directly into JavaScript code. With JSX, there is no need to separate HTML and JS code, because React allows you to write declarative HTML directly into JavaScript code.<\/p>\n<h2 id=\"%d8%a7%db%8c%d8%ac%d8%a7%d8%af-%db%8c%da%a9-react-app-%d8%aa%d9%85%d8%a7%d9%85-%d8%b9%db%8c%d8%a7%d8%b1\">Creating a full-fledged React App<\/h2>\n<p>While you can easily drop React into an existing web app to create small pieces of an interface, it&#039;s more practical to use React to build full web apps. However, React does have some heavy tool configuration requirements that are often daunting and tedious to set up when creating new React apps.<\/p>\n<p>Fortunately, you don&#039;t need to learn these build settings or configure the build tools yourself. Facebook has created a Node command-line tool called cre-react-app to help you build a React app. This package helps you do this out of the box and provides a consistent structure for React apps that you&#039;ll recognize when you move between React projects.<\/p>\n<p>Creating a new React project is as simple as running the following commands in your terminal:<\/p>\n<div class=\"hcb_wrap\" data-no-translation=\"\" data-no-auto-translation=\"\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>npx create-react-app my-new-app\r\ncd my-new-app\r\nnpm start\r\n<\/code><\/pre>\n<\/div>\n<h2 id=\"%d9%85%d8%ab%d8%a7%d9%84-%d9%87%d8%a7%db%8c-react-js\"><img  loading=\"lazy\"  decoding=\"async\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  width=\"624\"  height=\"422\"  class=\"aligncenter wp-image-14742 size-full pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"auto, (max-width: 624px) 100vw, 624px\"  data-pk-src=\"https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2.webp\"  data-pk-srcset=\"https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2.webp 624w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-300x203.webp 300w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-110x74.webp 110w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-200x135.webp 200w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-380x257.webp 380w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-255x172.webp 255w, https:\/\/cdn.itpiran.net\/2024\/02\/13115407\/What-Is-React.js_2-550x372.webp 550w\" ><br \/>\nReact.js examples<\/h2>\n<h5 id=\"%d9%81%db%8c%d8%b3%d8%a8%d9%88%da%a9\">Facebook<\/h5>\n<p>As the genesis of React.js, Facebook is an example of the library\u2019s prowess. React simplifies the platform\u2019s real-time features such as likes, comments, and status updates, ensuring a seamless and dynamic user experience. React\u2019s modular nature facilitates Facebook\u2019s constantly evolving interface and adapts to the needs of its more than 2.8 billion monthly active users.<\/p>\n<h5 id=\"%d8%a7%db%8c%d9%86%d8%b3%d8%aa%d8%a7%da%af%d8%b1%d8%a7%d9%85\">Instagram<\/h5>\n<p>Instagram Web is a canvas of interactive elements, all powered by React.js. Every image, like the story view and direct message, emphasizes React\u2019s ability to quickly handle complex user interactions. The platform\u2019s beautiful, user-friendly interface is a testament to React\u2019s skill at delivering high-performance interactions.<\/p>\n<h5 id=\"%d9%86%d8%aa-%d9%81%d9%84%db%8c%da%a9%d8%b3\">Netflix<\/h5>\n<p>Airbnb shows how React.js can transform complex data into an intuitive user experience. Each property listing, interactive map, and real-time booking are a symphony of React components that work in harmony to create a seamless user journey from browsing to booking.<\/p>","protected":false},"excerpt":{"rendered":"Introduction Today, front-end frameworks and libraries are becoming an essential part of the web development stack\u2026","protected":false},"author":1,"featured_media":14749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Recat.js \u0686\u06cc\u0633\u062a","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,266,363],"tags":[384,400],"class_list":{"0":"post-14740","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-news","9":"category-programming","10":"tag-java-script","11":"tag-react-js"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>React.js \u0686\u06cc\u0633\u062a\u061f - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/what-is-react-js\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React.js \u0686\u06cc\u0633\u062a\u061f - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"\u0645\u0642\u062f\u0645\u0647 \u0627\u0645\u0631\u0648\u0632\u0647\u060c \u0641\u0631\u06cc\u0645\u200c\u0647\u0627 \u0648 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627\u06cc \u0628\u062e\u0634 Front \u062f\u0631 \u062d\u0627\u0644 \u062a\u0628\u062f\u06cc\u0644 \u0634\u062f\u0646 \u0628\u0647 \u0628\u062e\u0634\u06cc \u0636\u0631\u0648\u0631\u06cc \u0627\u0632 \u067e\u0634\u062a\u0647 \u062a\u0648\u0633\u0639\u0647 \u0648\u0628&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/what-is-react-js\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-13T08:36:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-17T07:05:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1793\" \/>\n\t<meta property=\"og:image:height\" content=\"1110\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"React.js \u0686\u06cc\u0633\u062a\u061f\",\"datePublished\":\"2024-02-13T08:36:50+00:00\",\"dateModified\":\"2024-02-17T07:05:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/\"},\"wordCount\":137,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/15152531\\\/React.jsBG_.jpg\",\"keywords\":[\"Java Script\",\"React.js\"],\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0627\u062e\u0628\u0627\u0631\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/\",\"name\":\"React.js \u0686\u06cc\u0633\u062a\u061f - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/15152531\\\/React.jsBG_.jpg\",\"datePublished\":\"2024-02-13T08:36:50+00:00\",\"dateModified\":\"2024-02-17T07:05:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/15152531\\\/React.jsBG_.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2024\\\/02\\\/15152531\\\/React.jsBG_.jpg\",\"width\":1793,\"height\":1110},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/what-is-react-js\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"React.js \u0686\u06cc\u0633\u062a\u061f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/en\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is React.js? - ITPiran Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/what-is-react-js\/","og_locale":"en_US","og_type":"article","og_title":"React.js \u0686\u06cc\u0633\u062a\u061f - \u0628\u0644\u0627\u06af ITPiran","og_description":"\u0645\u0642\u062f\u0645\u0647 \u0627\u0645\u0631\u0648\u0632\u0647\u060c \u0641\u0631\u06cc\u0645\u200c\u0647\u0627 \u0648 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627\u06cc \u0628\u062e\u0634 Front \u062f\u0631 \u062d\u0627\u0644 \u062a\u0628\u062f\u06cc\u0644 \u0634\u062f\u0646 \u0628\u0647 \u0628\u062e\u0634\u06cc \u0636\u0631\u0648\u0631\u06cc \u0627\u0632 \u067e\u0634\u062a\u0647 \u062a\u0648\u0633\u0639\u0647 \u0648\u0628&hellip;","og_url":"https:\/\/www.itpiran.net\/blog\/en\/tutorials\/what-is-react-js\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2024-02-13T08:36:50+00:00","article_modified_time":"2024-02-17T07:05:48+00:00","og_image":[{"width":1793,"height":1110,"url":"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"React.js \u0686\u06cc\u0633\u062a\u061f","datePublished":"2024-02-13T08:36:50+00:00","dateModified":"2024-02-17T07:05:48+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/"},"wordCount":137,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg","keywords":["Java Script","React.js"],"articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0627\u062e\u0628\u0627\u0631","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/","name":"What is React.js? - ITPiran Blog","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg","datePublished":"2024-02-13T08:36:50+00:00","dateModified":"2024-02-17T07:05:48+00:00","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2024\/02\/15152531\/React.jsBG_.jpg","width":1793,"height":1110},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/what-is-react-js\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"React.js \u0686\u06cc\u0633\u062a\u061f"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"ITPiran Blog","description":"Iranian Sustainable Trade News and Articles","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Sustainable Iranian Business Blog","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"admin","url":"https:\/\/www.itpiran.net\/blog\/en\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/comments?post=14740"}],"version-history":[{"count":4,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14740\/revisions"}],"predecessor-version":[{"id":14752,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/posts\/14740\/revisions\/14752"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media\/14749"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/media?parent=14740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/categories?post=14740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/en\/wp-json\/wp\/v2\/tags?post=14740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}