{"id":451,"date":"2023-09-07T13:28:52","date_gmt":"2023-09-07T13:28:52","guid":{"rendered":"https:\/\/python.garden\/?p=451"},"modified":"2023-10-05T00:04:52","modified_gmt":"2023-10-05T00:04:52","slug":"installing-react-js","status":"publish","type":"post","link":"https:\/\/python.garden\/index.php\/2023\/09\/07\/installing-react-js\/","title":{"rendered":"Installing React.js"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Installing React.js on Linux<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Node.js and npm<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Terminal<\/strong>: Open a terminal window.<\/li>\n\n\n\n<li><strong>Update Package List<\/strong>: Update your local package cache. <code>sudo apt update<\/code><\/li>\n\n\n\n<li><strong>Install Node.js and npm<\/strong>:<br><code>bash sudo apt install nodejs npm<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Installing React.js<\/h3>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Create React App<\/strong>: Create a new React application. <code>npx create-react-app my-app<\/code><\/li>\n\n\n\n<li><strong>Run Your App<\/strong>: Navigate to your app&#8217;s directory and start it.<br><code>bash cd my-app npm start<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Installing React.js on Windows<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Node.js and npm<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Command Prompt<\/strong>: Open a new Command Prompt window.<\/li>\n\n\n\n<li><strong>Download Node.js<\/strong>: Download Node.js installer from the <a href=\"https:\/\/nodejs.org\/en\/download\/\">official website<\/a>.<\/li>\n\n\n\n<li><strong>Install Node.js<\/strong>: Follow the installation wizard to install Node.js, which will also install npm.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Installing React.js<\/h3>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Create React App<\/strong>: Create a new React application. <code>npx create-react-app my-app<\/code><\/li>\n\n\n\n<li><strong>Run Your App<\/strong>: Navigate to your app&#8217;s directory and start it.<br><code>bash cd my-app npm start<\/code><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Installing React.js on macOS<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Node.js and npm<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Terminal<\/strong>: Open a terminal window.<\/li>\n\n\n\n<li><strong>Install Homebrew<\/strong>: If you haven&#8217;t already. <code>\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/code><\/li>\n\n\n\n<li><strong>Install Node.js and npm<\/strong>:<br><code>bash brew install node<\/code><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Installing React.js<\/h3>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\">\n<li><strong>Create React App<\/strong>: Create a new React application. <code>npx create-react-app my-app<\/code><\/li>\n\n\n\n<li><strong>Run Your App<\/strong>: Navigate to your app&#8217;s directory and start it.<br><code>bash cd my-app npm start<\/code><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing React.js on Linux Installing Node.js and npm Installing React.js Installing React.js on Windows Installing Node.js and npm Installing React.js Installing React.js on macOS Installing Node.js and npm Installing React.js<\/p>\n","protected":false},"author":1,"featured_media":489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"featured_image_src":"https:\/\/i0.wp.com\/python.garden\/wp-content\/uploads\/2023\/09\/python_garden_reactjs.png?fit=1024%2C1024&ssl=1","author_info":{"display_name":"shababdoo","author_link":"https:\/\/python.garden\/index.php\/author\/shababdoo\/"},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/python.garden\/wp-content\/uploads\/2023\/09\/python_garden_reactjs.png?fit=1024%2C1024&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":0,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/media\/489"}],"wp:attachment":[{"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python.garden\/index.php\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}