<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pedro Velazquez</title>
    <description>The latest articles on DEV Community by Pedro Velazquez (@pedrovelborr).</description>
    <link>https://dev.to/pedrovelborr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F500294%2F0a0f3c9d-a0c7-45b0-9d07-ceb31a6154fe.JPG</url>
      <title>DEV Community: Pedro Velazquez</title>
      <link>https://dev.to/pedrovelborr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pedrovelborr"/>
    <language>en</language>
    <item>
      <title>React + Vite + Ts templates for you</title>
      <dc:creator>Pedro Velazquez</dc:creator>
      <pubDate>Mon, 20 Feb 2023 16:16:45 +0000</pubDate>
      <link>https://dev.to/pedrovelborr/react-vite-ts-templates-for-you-4gk3</link>
      <guid>https://dev.to/pedrovelborr/react-vite-ts-templates-for-you-4gk3</guid>
      <description>&lt;p&gt;Hi there. I want to share with you two repos for building (guess what) react apps, powered by vitejs and typescript. They include i18n, caching, custom http client (no more axios), tailwindcss, vitest and file-config based routing (no more a single file with all yout routes). Any feedback is welcome &lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Pedro-Velazquez/revit"&gt;https://github.com/Pedro-Velazquez/revit&lt;/a&gt; (with material design)&lt;br&gt;
&lt;a href="https://github.com/Pedro-Velazquez/vint"&gt;https://github.com/Pedro-Velazquez/vint&lt;/a&gt; (with ant design)&lt;/p&gt;

</description>
      <category>react</category>
      <category>vite</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Architecting React Applications</title>
      <dc:creator>Pedro Velazquez</dc:creator>
      <pubDate>Sun, 10 Oct 2021 01:11:41 +0000</pubDate>
      <link>https://dev.to/pedrovelborr/architenting-react-applications-49ho</link>
      <guid>https://dev.to/pedrovelborr/architenting-react-applications-49ho</guid>
      <description>&lt;p&gt;React is easy to learn, hard to master. It give you all the freedom you need (or not) to organize your proyects. It have amazing stuff like hooks, contexts, Suspense, and more (and more in React 18). But now it´s time to do some real world large proyects where thing like maintainability, separation of concerns and reusability REALLY matter. So, what to do? You need to architect your codebase to resist both the test of the time and changes in requirements. How to do that? I prefer 2 ways to organize my code: domain-driven or based on the type of feature a framework or library provide. &lt;br&gt;
Now i will share with you a approach that take the best of the two worlds:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Lbcbme-Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxrbw5tthja7pwh8mzho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Lbcbme-Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fxrbw5tthja7pwh8mzho.png" alt="Architecture for react applications"&gt;&lt;/a&gt;&lt;br&gt;
Here we have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;components: Here we will place our Components, and then we will divide they based on domain, the page that use it or parts of one more complex component
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4Vy5xzQs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sxyiasmb8zo2qyslhe40.png" alt="components organization"&gt;
&lt;/li&gt;
&lt;li&gt;constants: enums, route paths, static select models..&lt;/li&gt;
&lt;li&gt;contexts: Context who are domain-agnostic. For example UserContext or configuration to use libraries based on context like @apollo/client or use-http.&lt;/li&gt;
&lt;li&gt;hooks: Hooks who are domain-agnostic. For example useWindowSize, useDocumentTitle&lt;/li&gt;
&lt;li&gt;pages: All pages of the application. Nested routes are places inside a folder with the same name as the root route.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TGn8L3zK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fc16nr8f9ob8w4ldu6jj.png" alt="pages organization"&gt;
&lt;/li&gt;
&lt;li&gt;routing: Configuration of the routes. Logic related to public/private routes are placed here too.&lt;/li&gt;
&lt;li&gt;services: Here we have functions || classes || hooks to comunicate to the API. Business logic lives here.&lt;/li&gt;
&lt;li&gt;util: Utilities that don´t match any category.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for reading. I will appreciate all the feedback. Keep learing...&lt;/p&gt;

</description>
      <category>react</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Vue over React just for the syntaxis? :(</title>
      <dc:creator>Pedro Velazquez</dc:creator>
      <pubDate>Tue, 27 Oct 2020 18:39:37 +0000</pubDate>
      <link>https://dev.to/pedrovelborr/vue-over-react-just-for-the-syntaxis-2gjo</link>
      <guid>https://dev.to/pedrovelborr/vue-over-react-just-for-the-syntaxis-2gjo</guid>
      <description>&lt;p&gt;Hi there. I really like these two workhorse of all frontend developers. Personally, i prefer react. I have a friend that told me he select vue all times because vue allow to "separate" your html, css and js code in a more clean way that react does... i think Yeah, maybe... but that can't be the reason to discard react and all his power... We must fell confortables with ours frameworks and coding should be pleasent, but i think that the beauty isn't only what you may see while reading code but also the hardwork performed by the library or framework and the ways you can customize it's behavior. What do you think?&lt;br&gt;
PD: Excuse me if i make a mistake when writting the post. I am learning English :)&lt;/p&gt;

</description>
      <category>react</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
