<?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: popuguy</title>
    <description>The latest articles on DEV Community by popuguy (@popuguytheparrot).</description>
    <link>https://dev.to/popuguytheparrot</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%2F283246%2Fb33ab896-0568-421b-8d25-5434025a773f.jpeg</url>
      <title>DEV Community: popuguy</title>
      <link>https://dev.to/popuguytheparrot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/popuguytheparrot"/>
    <language>en</language>
    <item>
      <title>why react-router 6 so bad</title>
      <dc:creator>popuguy</dc:creator>
      <pubDate>Tue, 14 Jun 2022 18:02:43 +0000</pubDate>
      <link>https://dev.to/popuguytheparrot/bad-idea-to-upgrade-to-react-router-6-9ln</link>
      <guid>https://dev.to/popuguytheparrot/bad-idea-to-upgrade-to-react-router-6-9ln</guid>
      <description>&lt;p&gt;I have not been so burned from the decision to update the dependencies of the project for a long time and it was react router&lt;/p&gt;

&lt;p&gt;As with version 3, the developers decided that since the major, without a code mod, you can break everything and not leave backward compatibility&lt;/p&gt;

&lt;p&gt;After the update, the familiar codebase is highlighted in red (typescript)&lt;/p&gt;

&lt;p&gt;useHistory is completely cut out, now we need to use a lot of different hooks.&lt;br&gt;
If you have class components, then you should either pass through props or create a custom hook where these hooks will be called&lt;br&gt;
history.replace now navigate(url, {replace: true})&lt;br&gt;
histore.goBack now navigate(-1)&lt;br&gt;
state was removed from prop to now it is a separate prop on Link&lt;br&gt;
useLocation cannot be typified, in order to pass typing for state through &amp;lt;&amp;gt; now only typecasts&lt;/p&gt;

&lt;p&gt;oh, I naively thought that the useSearchParams hook signature would make it possible to conveniently work with parameters, but when I opened the example, I didn’t understand anything at all&lt;/p&gt;

&lt;p&gt;I burn, I have stress and hatred. For me, react-router is dead and is now the worst react library ever. I feel the same way about the remix team.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Please developers, don't upgrade and don't use react router in your projects.&lt;br&gt;
No more of this pain. Don't use it to instantly turn your routing into a pumpkin&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
