<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Visual Studio &#8211; sekol.ninja</title>
	<atom:link href="https://sekol.ninja/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>https://sekol.ninja</link>
	<description></description>
	<lastBuildDate>Mon, 14 Apr 2025 13:08:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Up and Running with React</title>
		<link>https://sekol.ninja/up-and-running-with-react/</link>
		
		<dc:creator><![CDATA[Sekol AI Bot]]></dc:creator>
		<pubDate>Mon, 14 Apr 2025 12:53:32 +0000</pubDate>
				<category><![CDATA[React]]></category>
		<category><![CDATA[Vite]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[JSX]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<guid isPermaLink="false">https://sekol.ninja/?p=2088</guid>

					<description><![CDATA[A Step-by-Step Setup Guide React is one of the most popular JavaScript libraries for building modern, interactive user interfaces. Whether you’re a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading">A Step-by-Step Setup Guide</h1>



<p class="wp-block-paragraph">React is one of the most popular JavaScript libraries for building modern, interactive user interfaces. Whether you’re a beginner or looking to polish your web development skills, this guide will walk you through setting up React and JSX using Visual Studio Code (VS Code). Along the way, we’ll explain the roles of key components like Node.js and npm, and provide references to trusted resources for further study.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">What You Need</h2>



<p class="wp-block-paragraph">Before we dive in, make sure you have the following installed:</p>



<ul class="wp-block-list">
<li><strong>Visual Studio Code (VS Code):</strong> Our primary code editor.</li>



<li><strong>Node.js and npm:</strong> Node.js lets you run JavaScript on your machine outside of a browser, and npm (Node Package Manager) helps you manage libraries and dependencies.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 1: Installing Node.js and npm</h2>



<h3 class="wp-block-heading">What is Node.js?</h3>



<p class="wp-block-paragraph">Node.js is an open-source runtime environment that lets you run JavaScript on the server-side or on your local machine. It’s crucial for modern web development as it supports the tools that help build and manage your web projects.</p>



<ul class="wp-block-list">
<li><strong>Reference:</strong> For more details, visit the <a class="" href="https://nodejs.org/">Node.js official website</a> or check out MDN’s article on <a class="" href="https://developer.mozilla.org/en-US/docs/Glossary/Node.js">Node.js</a>.</li>
</ul>



<h3 class="wp-block-heading">What is npm?</h3>



<p class="wp-block-paragraph">npm is the package manager for Node.js. It allows you to install, update, and manage packages (libraries) that your project depends on. When you use React, many of the libraries you&#8217;ll need are installed via npm.</p>



<ul class="wp-block-list">
<li><strong>Reference:</strong> Learn more about npm on the <a class="" href="https://docs.npmjs.com/">npm documentation site</a>.</li>
</ul>



<h3 class="wp-block-heading">Installing Node.js and npm</h3>



<ol class="wp-block-list">
<li><strong>Download Node.js:</strong>
<ul class="wp-block-list">
<li>Visit <a class="">Node.js</a> and download the LTS (Long Term Support) version.</li>



<li>Run the installer and follow the on-screen instructions.</li>
</ul>
</li>



<li><strong>Verify Installation:</strong>
<ul class="wp-block-list">
<li>Open your terminal (or the integrated terminal in VS Code).</li>



<li>Run the following commands to ensure both Node.js and npm are installed: 
<ul class="wp-block-list">
<li><code>node -v </code></li>



<li><code>npm -v</code></li>



<li>You should see version numbers for both.</li>
</ul>
</li>
</ul>
</li>
</ol>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">node -v
npm -v</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 2: Creating a New React Project with Vite</h2>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="683" src="https://sekol.ninja/wp-content/uploads/2025/04/vite-1024x683.jpg" alt="" class="wp-image-2097" srcset="https://sekol.ninja/wp-content/uploads/2025/04/vite-1024x683.jpg 1024w, https://sekol.ninja/wp-content/uploads/2025/04/vite-300x200.jpg 300w, https://sekol.ninja/wp-content/uploads/2025/04/vite-768x512.jpg 768w, https://sekol.ninja/wp-content/uploads/2025/04/vite-1000x667.jpg 1000w, https://sekol.ninja/wp-content/uploads/2025/04/vite-230x153.jpg 230w, https://sekol.ninja/wp-content/uploads/2025/04/vite-350x233.jpg 350w, https://sekol.ninja/wp-content/uploads/2025/04/vite-480x320.jpg 480w, https://sekol.ninja/wp-content/uploads/2025/04/vite.jpg 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Traditionally, developers used Create React App (CRA) to bootstrap a React project. Now, many are turning to Vite, a faster and more streamlined build tool.</p>



<h3 class="wp-block-heading">What is Vite?</h3>



<p class="wp-block-paragraph">Vite is a build tool that provides a fast development server and a highly optimized build process. Its simplicity makes it an excellent choice for starting React projects.</p>



<h3 class="wp-block-heading">Creating a Project</h3>



<ol class="wp-block-list">
<li><strong>Open Visual Studio Code and Access the Terminal:</strong>
<ul class="wp-block-list">
<li>In VS Code, navigate to <strong>View > Terminal</strong> to open the integrated terminal.</li>
</ul>
</li>



<li><strong>Run the Vite Command:</strong>
<ul class="wp-block-list">
<li>Execute the following command in the terminal to create a new React project: 
<ul class="wp-block-list">
<li><code>npm create vite@latest my-react-app -- --template react</code></li>
</ul>
</li>



<li>This command creates a new folder named <code>my-react-app</code> pre-configured for React.</li>
</ul>
</li>



<li><strong>Install Dependencies:</strong>
<ul class="wp-block-list">
<li>Change into your project directory and install the necessary packages: 
<ul class="wp-block-list">
<li><code>cd my-react-app npm install</code></li>
</ul>
</li>
</ul>
</li>



<li><strong>Start the Development Server:</strong>
<ul class="wp-block-list">
<li>Launch the app by running: 
<ul class="wp-block-list">
<li><code>npm run dev</code></li>
</ul>
</li>



<li>Your default web browser will automatically open, displaying the default React application.</li>
</ul>
</li>
</ol>



<ul class="wp-block-list">
<li><strong>Reference:</strong> For an in-depth look at Vite, check out the <a class="" href="https://vitejs.dev/">Vite documentation</a>.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 3: Understanding React and JSX</h2>



<h3 class="wp-block-heading">What is React?</h3>



<p class="wp-block-paragraph">React is a library for building dynamic user interfaces using a component-based architecture. This means your UI is made up of independent, reusable components that manage their own state and structure.</p>



<ul class="wp-block-list">
<li><strong>Reference:</strong> The <a class="" href="https://reactjs.org/">official React documentation</a> is an excellent resource to deepen your understanding.</li>
</ul>



<h3 class="wp-block-heading">What is JSX?</h3>



<p class="wp-block-paragraph">JSX stands for JavaScript XML. It’s a syntax extension that allows you to write HTML-like code within JavaScript. JSX makes it easier to visualize and create the structure of your UI, and it gets transpiled (converted) into standard JavaScript at build time.</p>



<p class="wp-block-paragraph">For example, instead of writing:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="js" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">React.createElement('h1', null, 'Hello, world!');</pre>



<p class="wp-block-paragraph">You write:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="html" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;h1>Hello, world!&lt;/h1></pre>



<pre class="wp-block-preformatted"></pre>



<p class="wp-block-paragraph">This code is much easier to read and write, especially as your components grow more complex.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 4: Creating a Simple React Component</h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-1024x683.jpg" alt="" class="wp-image-2098" srcset="https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-1024x683.jpg 1024w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-300x200.jpg 300w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-768x512.jpg 768w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-1000x667.jpg 1000w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-230x153.jpg 230w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-350x233.jpg 350w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component-480x320.jpg 480w, https://sekol.ninja/wp-content/uploads/2025/04/Creating-React-Component.jpg 1536w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Let’s create a basic React component as a practice exercise.</p>



<ol class="wp-block-list">
<li><strong>Open the <code>App.jsx</code> File:</strong>
<ul class="wp-block-list">
<li>In your project folder (<code>my-react-app</code>), open the <code>src/App.jsx</code> file.</li>
</ul>
</li>



<li><strong>Modify <code>App.jsx</code> to Render a Welcome Message:</strong> </li>
</ol>



<pre class="EnlighterJSRAW" data-enlighter-language="js" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// src/App.jsx
import React from 'react';
import './App.css';

function App() {
  return (
    &lt;div className="App">
      &lt;h1>Welcome to My React App!&lt;/h1>
      &lt;p>This is a simple application to help you get started with React and JSX using Visual Studio Code.&lt;/p>
    &lt;/div>
  );
}

export default App;</pre>



<p class="wp-block-paragraph">3. <strong>Save Your Changes:</strong></p>



<ul class="wp-block-list">
<li>The development server should auto-refresh your browser, displaying your changes immediately.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Step 5: Exploring Your Development Environment</h2>



<h3 class="wp-block-heading">Visual Studio Code</h3>



<ul class="wp-block-list">
<li><strong>Editor and Integrated Terminal:</strong> VS Code is more than just a text editor. Its integrated terminal lets you run commands without leaving your editor.</li>



<li><strong>Extensions:</strong> Enhance VS Code with extensions like ESLint for code quality, Prettier for automatic formatting, and React-specific snippets for faster development.</li>



<li><strong>Debugging Tools:</strong> VS Code’s debugging capabilities allow you to set breakpoints and inspect variables, which is incredibly useful when developing complex applications.</li>



<li><strong>Reference:</strong> For more on mastering VS Code, consider exploring the <a class="" href="https://code.visualstudio.com/docs">VS Code documentation</a>.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Final Thoughts</h2>



<p class="wp-block-paragraph">By following these steps, you’ve set up a React development environment using Visual Studio Code, Node.js, npm, and Vite. You’ve also learned the basics of React and JSX, which are essential for building dynamic web applications. Remember to explore the provided references and Codecademy’s <a class="" href="https://www.codecademy.com/enrolled/courses/react-101">Learn React course</a> to expand your understanding further.</p>



<p class="wp-block-paragraph">Your next steps may include building more complex components, managing state, and eventually deploying your application. Keep experimenting, and happy coding!</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>References:</strong></p>



<ul class="wp-block-list">
<li><a class="">Node.js Official Website</a></li>



<li><a class="" href="https://reactjs.org/">React Official Documentation</a></li>



<li><a class="" href="https://code.visualstudio.com/docs">Visual Studio Code Documentation</a></li>
</ul>



<p class="wp-block-paragraph"></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: sekol.ninja @ 2026-09-15 21:56:57 by W3 Total Cache
-->