<?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>Forem: Julio César Retamal Rojas</title>
    <description>The latest articles on Forem by Julio César Retamal Rojas (@jretamal).</description>
    <link>https://forem.com/jretamal</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%2F856787%2F7fd6191d-a315-47ee-891c-42b34c12b33a.jpeg</url>
      <title>Forem: Julio César Retamal Rojas</title>
      <link>https://forem.com/jretamal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/jretamal"/>
    <language>en</language>
    <item>
      <title>7 bibliotecas para React</title>
      <dc:creator>Julio César Retamal Rojas</dc:creator>
      <pubDate>Sun, 28 Jan 2024 16:16:44 +0000</pubDate>
      <link>https://forem.com/jretamal/7-bibliotecas-para-react-39e3</link>
      <guid>https://forem.com/jretamal/7-bibliotecas-para-react-39e3</guid>
      <description>&lt;p&gt;Aquí tienes una lista de 7 bibliotecas que son imprescindibles para cualquier programador de React:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sonner&lt;/strong&gt;: Facilita la muestra de notificaciones en tu aplicación con configuración sencilla en solo 3 líneas de código. Puedes encontrar más información en &lt;a href="https://sonner.emilkowal.ski"&gt;https://sonner.emilkowal.ski&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;⌘K (CmdK)&lt;/strong&gt;: Agrega navegación por teclado a tu sitio web para mejorar la experiencia de usuario. Descubre cómo implementarlo en &lt;a href="https://cmdk.paco.me"&gt;https://cmdk.paco.me&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Iconos Animados&lt;/strong&gt;: Eleva el atractivo visual de tu página web con esta colección de iconos que incluyen animaciones. Explora las posibilidades en &lt;a href="https://react.useanimations.com"&gt;https://react.useanimations.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Calendario Reactivo&lt;/strong&gt;: Renderiza un calendario interactivo para navegar meses y días, totalmente personalizable para que se adapte al estilo de tu página. Más detalles en &lt;a href="https://react-day-picker.js.org"&gt;https://react-day-picker.js.org&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FilePond&lt;/strong&gt;: Simplifica la carga de archivos mediante la funcionalidad de arrastrar y soltar. Compatible no solo con React, sino también con Vue y Angular. Descúbrelo en &lt;a href="https://pqina.nl/filepond"&gt;https://pqina.nl/filepond&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;React Hook Form&lt;/strong&gt;: Optimiza tus formularios y reduce la cantidad de código necesario con este conjunto de componentes eficiente. Obtén más información en &lt;a href="https://react-hook-form.com"&gt;https://react-hook-form.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vault&lt;/strong&gt;: Integra un componente de caja flotante (drawer) configurable que puede deslizarse desde la parte inferior o lateral de la página. Descubre las opciones de personalización en &lt;a href="https://vaul.emilkowal.ski"&gt;https://vaul.emilkowal.ski&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Esta selección de bibliotecas proporciona herramientas esenciales para mejorar la funcionalidad y apariencia de tus aplicaciones React. ¡Aprovéchalas para llevar tus proyectos al siguiente nivel!&lt;/p&gt;

</description>
      <category>react</category>
      <category>library</category>
      <category>programming</category>
      <category>frontend</category>
    </item>
    <item>
      <title>Cloud Computing by Categories</title>
      <dc:creator>Julio César Retamal Rojas</dc:creator>
      <pubDate>Sat, 23 Dec 2023 15:00:53 +0000</pubDate>
      <link>https://forem.com/jretamal/cloud-computing-by-categories-5e2k</link>
      <guid>https://forem.com/jretamal/cloud-computing-by-categories-5e2k</guid>
      <description>&lt;p&gt;Here is a list of the types of cloud computing services and the name of the product according to the companies AWS, Azure and Google.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a68HVHf4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cwsjy5g4akgl5dq9cni.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a68HVHf4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cwsjy5g4akgl5dq9cni.gif" alt="Image description" width="800" height="900"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>cloudcomputing</category>
      <category>aws</category>
      <category>azure</category>
      <category>googlecloud</category>
    </item>
    <item>
      <title>Fix Error 404 when Refreshing a route with React Router</title>
      <dc:creator>Julio César Retamal Rojas</dc:creator>
      <pubDate>Sun, 03 Dec 2023 13:49:10 +0000</pubDate>
      <link>https://forem.com/jretamal/fix-error-404-when-refreshing-a-route-with-react-router-4nag</link>
      <guid>https://forem.com/jretamal/fix-error-404-when-refreshing-a-route-with-react-router-4nag</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When we develop web applications with React and use React Router for navigation, we often face the 404 error problem when refreshing the page on specific paths. This is due to how web servers handle requests and how React Router handles client side routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When using React Router, the navigation between pages is done client-side, which means that the routes are handled by JavaScript in the browser. However, when refreshing the page or directly accessing a specific URL, some web servers may not understand how to handle these routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solutions:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Configuration for Apache:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If your application is hosted on an Apache server, you can solve this problem by creating an &lt;strong&gt;.htaccess&lt;/strong&gt; file with the following content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;
  RewriteEngine On 
  RewriteBase / 
  RewriteRule ^index\.html$ - [L] 
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteCond %{REQUEST_FILENAME} !-d 
  RewriteCond %{REQUEST_FILENAME} !-l
  RewriteRule . /index.html [L]
&amp;lt;/IfModule&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code ensures that all requests are redirected to index.html, where React Router will take care of handling the routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Configuration for Netlify:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the case of Netlify, you can create a &lt;strong&gt;_redirects&lt;/strong&gt; file in the root of your project with the following content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/*  /index.html 200
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This tells Netlify to redirect all requests to index.html and respond with a 200 (OK) code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Configuration for Vercel:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you decide to host your application on Vercel, you need to configure the &lt;strong&gt;vercel.json&lt;/strong&gt; file with the following content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "rewrites": [
    {
      "source": "/(.*)",
      "destination": "/index.html"
    }
  ]
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This configuration ensures that Vercel redirects all requests to index.html, thus ensuring proper handling of React Router routes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When addressing the 404 error challenge when refreshing a page in a React application with React Router, it is critical to understand how web servers work and how we can configure them to handle routes in a way that is compatible with client-side routing. Whether for Apache, Netlify or Vercel servers, these configurations offer effective solutions to ensure smooth operation of your React application.&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>reactrouter</category>
    </item>
  </channel>
</rss>
