<?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: baloukaulrich6</title>
    <description>The latest articles on DEV Community by baloukaulrich6 (@baloukaulrich6).</description>
    <link>https://dev.to/baloukaulrich6</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%2F939524%2F7227093a-db41-461b-a783-64ff4890a3f8.jpeg</url>
      <title>DEV Community: baloukaulrich6</title>
      <link>https://dev.to/baloukaulrich6</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/baloukaulrich6"/>
    <language>en</language>
    <item>
      <title>React private route</title>
      <dc:creator>baloukaulrich6</dc:creator>
      <pubDate>Sat, 08 Oct 2022 21:25:10 +0000</pubDate>
      <link>https://dev.to/baloukaulrich6/react-private-route-3mp8</link>
      <guid>https://dev.to/baloukaulrich6/react-private-route-3mp8</guid>
      <description>&lt;p&gt;I can't create a protected route in react v6 even when the function is well declared. even being disconnected I can access the main page but error is.&lt;/p&gt;

&lt;p&gt;0&lt;/p&gt;

&lt;p&gt;import React from 'react';&lt;br&gt;
import { Outlet, Navigate } from 'react-router-dom';&lt;/p&gt;

&lt;p&gt;const PrivateRoute = ({component, token, children}) =&amp;gt; {&lt;br&gt;
    if(!token){&lt;br&gt;
        return   ;&lt;br&gt;
    } else {&lt;br&gt;
        return ;&lt;br&gt;
    };&lt;/p&gt;

&lt;p&gt;};&lt;/p&gt;

&lt;p&gt;export default PrivateRout;&lt;/p&gt;

&lt;p&gt;//but as soon as I change position they differ return an error is created and the browser bugs&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
