<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Said Ouarrich on Medium]]></title>
        <description><![CDATA[Stories by Said Ouarrich on Medium]]></description>
        <link>https://medium.com/@saidouarrich?source=rss-415bc03e4fe8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*UB0AWoMNrdloN50C.</url>
            <title>Stories by Said Ouarrich on Medium</title>
            <link>https://medium.com/@saidouarrich?source=rss-415bc03e4fe8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 09:17:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saidouarrich/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Simple React Logo Component with Github Copilot Agent and Tailwind CSS]]></title>
            <link>https://medium.com/@saidouarrich/building-a-simple-react-logo-component-with-github-copilot-agent-and-tailwind-css-41115c854add?source=rss-415bc03e4fe8------2</link>
            <guid isPermaLink="false">https://medium.com/p/41115c854add</guid>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Said Ouarrich]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 16:58:52 GMT</pubDate>
            <atom:updated>2025-09-26T16:58:52.907Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>AI-assisted development is transforming the way we write code. Tools like <strong>GitHub Copilot </strong>in <strong>VS Code</strong> can accelerate React development by generating boilerplate code and styling suggestions from natural language prompts.</blockquote><p>In this tutorial, we’ll create a small <strong>Logo</strong> component with <strong>React </strong>and <strong>Tailwind CSS</strong>, using <strong>GitHub Copilot </strong>in mode agent to guide the process.</p><p>Here is the result: Logo with nom and pronoun initials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DQc0Yx_d-32VVNAGkww47Q.png" /></figure><p><strong>🛠️ Prerequisites</strong></p><p>Before we start, ensure you have:</p><p>— <strong>Node.js</strong> (v16 or later)</p><p>— <strong>VS Code</strong> with the <strong>GitHub Copilot</strong> extension enabled (Agent mode recommended)</p><p><strong>1️⃣ Create a React Project</strong></p><p>If you don’t have a React project yet, create one:</p><pre>npx create-react-app copilot-logo<br>cd copilot-logo<br>npm install</pre><p>Install Tailwind following the documentation: <a href="https://tailwindcss.com/docs/installation/using-vite">https://tailwindcss.com/docs/installation/using-vite</a></p><blockquote>Note: While this step can be accomplished using GitHub Copilot, I will not demonstrate it here for the sake of simplicity.</blockquote><p><strong>2️⃣ Open VS Code and Start Copilot Agent</strong></p><p>1. Open the project in VS Code.</p><p>2. Make sure <strong>GitHub Copilot</strong> is enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*vJd4qZn5N_8nWHyTyUseoQ.png" /></figure><p>3. Activate <strong>Copilot Agent</strong> (click the Copilot icon or use `Ctrl+Shift+I` or Command+Shift+I`to start a new chat).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wQuvVHxJX66oDg5jHWVoVA.png" /></figure><p><strong>3️⃣ Prompt Copilot to Create a Logo Component</strong></p><p>create a file in your favorite directory (e.g in the root folder) and name it: <strong><em>instructions.md</em></strong></p><p>Inside the file, write a natural language comment to guide Copilot:</p><pre># Persona<br>You are an expert react and typescript developer<br><br>### React best practices<br>create interface for component props<br><br>### Typescript best practices<br>use strict mode<br>type your data structure<br>dont use any for typing<br><br>### Task<br>Create a reusable React component for a Logo with nom and pronom initials.<br>Initials are: SO<br>Text color should be white<br>font text: bold<br>it should be rounded<br>logo background : #0C7B91<br><br>### Styling<br>Use Tailwind CSS for styling.</pre><p>Let this file open in Vscode. It will be used as context for Github Copilot agent.</p><p>in the chat type something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*4jei94U1CkttH7IDFSoc1A.png" /></figure><p>And then click on the send button.</p><p>You might get something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PM4coudV9Am1rH84pBT1MA.png" /></figure><p>click keep to accept the changes.</p><p><strong>4️⃣ Use the Component</strong></p><p>Open `App.tsx` and add:</p><pre>import Logo from &#39;./components/Logo&#39;;<br><br>function App() {<br>return (<br>  &lt;div className=&quot;p-8&quot;&gt;<br>    &lt;Logo size=&quot;lg&quot; /&gt;<br>  &lt;/div&gt;<br>);<br>}<br>export default App;</pre><p><strong>5️⃣ Run the App</strong></p><p>Start the development server:</p><pre>npm start</pre><p>You should see a neat logo with initials inside a blue circle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*In7ZPc67uynQ0Duo_OjvRA.png" /></figure><p><strong>## 💡 Pro Tips</strong></p><p>- Experiment with Copilot prompts such as:</p><p><em>Add a hover effect to the logo</em></p><p>or</p><p><em>Animate the circle with Tailwind transitions</em></p><p>- You can interact directly with Copilot through chat, eliminating the need to use an instructions file every time.</p><p><strong>✅ Conclusion</strong></p><p>With <strong>GitHub Copilot in agent mode</strong>, building React components is faster and more intuitive.</p><p>You simply describe what you need in natural language, and Copilot generates production-ready code while you stay in control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41115c854add" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>