<?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: Ministry of JavaScript</title>
    <description>The latest articles on DEV Community by Ministry of JavaScript (@ministryofjavascript).</description>
    <link>https://dev.to/ministryofjavascript</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%2F907968%2Fb3164542-17f6-4058-b447-b723c4b67b27.png</url>
      <title>DEV Community: Ministry of JavaScript</title>
      <link>https://dev.to/ministryofjavascript</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ministryofjavascript"/>
    <language>en</language>
    <item>
      <title>REDUX-PERSIST createMigrate Auto Syncing</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Sun, 21 Jan 2024 01:05:46 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/redux-persist-createmigrate-auto-update-1p07</link>
      <guid>https://dev.to/ministryofjavascript/redux-persist-createmigrate-auto-update-1p07</guid>
      <description>&lt;p&gt;When you are using redux-persist in your react application then you come up with an issue that when you change the data structure of any reducer state then it will not appear in your redux state when you reload your application so for that redux-persist provide us a way to update the state using createMigrate method.&lt;/p&gt;

&lt;p&gt;To do that you need to create a migration where you provide your updated state so that it will appear in your redux state.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export const migration = {
  0: (state: any) =&amp;gt; {
    return {
      ...state,
      reducerOne:{
        ...state.reducerOne,
        data: null // New value added in reducerOne
      }
    };
  },
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But lets say you have multiple reducers and you are making changes in lot of reducers as the new feature comes in or some sort of revamp. In that case you will be manually providing all the changes in your migration accordingly. To remove this hectic process there is one simple way first create a constant for Version like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export const newVersion = 3;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and assign it into migration object, and persistConfig like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export const migration = {
  [newVersion]: (state: any) =&amp;gt; {
    return {
      ...state,
      reducerOne:{
        ...state.reducerOne,
        data: null // New value added in reducerOne
      }
    };
  },
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then in your reducer file where you are assigning your initialState just export it and then import it inside your migration file and assign it against that reducer like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import {initialState} from './reducer/reducerOne'

export const migration = {
  [newVersion]: (state: any) =&amp;gt; {
    return {
      ...state,
      reducerOne: initialState,
    };
  },
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now when ever you add, update or delete any property in initialState of reducer, you just need to update the newVersion and reload your react application, after that you will see your updated property will appear in your redux state. &lt;/p&gt;

&lt;p&gt;By following this process you don't have to manually enter the properties or reducers in your migration. This architecture will automatically do all the syncing for you.&lt;/p&gt;

&lt;p&gt;Hope you like it.&lt;/p&gt;

</description>
      <category>react</category>
      <category>redux</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Redux Toolkit Crash Course</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Mon, 20 Nov 2023 13:59:11 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/redux-toolkit-crash-course-25ii</link>
      <guid>https://dev.to/ministryofjavascript/redux-toolkit-crash-course-25ii</guid>
      <description>&lt;p&gt;New course on Redux Toolkit:&lt;/p&gt;

&lt;p&gt;Tutorial # 1: &lt;a href="https://lnkd.in/dC-KYVC9"&gt;https://lnkd.in/dC-KYVC9&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  javascript #typescript #react #reactjs #reduxtoolkit #youtubecreator #youtube
&lt;/h1&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>redux</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Complete React tutorials</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Mon, 09 Jan 2023 12:29:01 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/complete-react-tutorials-k4j</link>
      <guid>https://dev.to/ministryofjavascript/complete-react-tutorials-k4j</guid>
      <description>&lt;p&gt;Start Watching: &lt;a href="https://www.youtube.com/@MinistryofJavaScript"&gt;Ministry of JavaScript&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>react</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Does DSA and code complexity really need to be included in Frontend interviews?</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Sun, 18 Sep 2022 20:21:58 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/does-dsa-and-code-complexity-really-need-to-be-included-in-frontend-interviews-o54</link>
      <guid>https://dev.to/ministryofjavascript/does-dsa-and-code-complexity-really-need-to-be-included-in-frontend-interviews-o54</guid>
      <description>&lt;p&gt;Does DSA and code complexity coding challenges really need to be included in Frontend interviews? I don't think so because whenever you are hiring a frontend developer then you should be focusing more toward building best user experiences and solving the real world frontend problems. &lt;/p&gt;

&lt;p&gt;What do you say?&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>react</category>
    </item>
    <item>
      <title>Complete Modern ReactJS Tutorials</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Sun, 18 Sep 2022 09:44:39 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/complete-modern-reactjs-tutorials-3bfb</link>
      <guid>https://dev.to/ministryofjavascript/complete-modern-reactjs-tutorials-3bfb</guid>
      <description>&lt;p&gt;Watch now: &lt;a href="https://www.youtube.com/channel/UC9WtUscS9EUCaJuazSYjUlQ?sub_confirmation=1"&gt;Ministry of JavaScript&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>react</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Advanced React: useFetch custom hook. Master custom hooks in just 10 minutes.</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Sun, 11 Sep 2022 12:10:29 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/advanced-react-usefetch-custom-hook-master-custom-hooks-in-just-10-minutes-ia7</link>
      <guid>https://dev.to/ministryofjavascript/advanced-react-usefetch-custom-hook-master-custom-hooks-in-just-10-minutes-ia7</guid>
      <description>&lt;p&gt;Advanced React: useFetch custom hook. Master custom hooks in just 10 minutes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/KqQu9kYJaFI"&gt;https://youtu.be/KqQu9kYJaFI&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  javascript #react #reactjs #reactdeveloper #javascriptdevelopers #ministryofjavascript
&lt;/h1&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>All useful Array Methods - Explained in Videos</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Tue, 06 Sep 2022 14:41:12 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/all-useful-array-methods-explained-in-videos-1jjk</link>
      <guid>https://dev.to/ministryofjavascript/all-useful-array-methods-explained-in-videos-1jjk</guid>
      <description>&lt;p&gt;Complete series at: &lt;a href="https://www.youtube.com/watch?v=6VvIeKNnmg0&amp;amp;list=PLbXAYqhxhzxyj6rKjnttWdjjE41DXkJ-E"&gt;https://www.youtube.com/watch?v=6VvIeKNnmg0&amp;amp;list=PLbXAYqhxhzxyj6rKjnttWdjjE41DXkJ-E&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>React Advanced - useTransition Hook in React</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Sun, 04 Sep 2022 03:01:33 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/react-advanced-usetransition-hook-in-react-jlf</link>
      <guid>https://dev.to/ministryofjavascript/react-advanced-usetransition-hook-in-react-jlf</guid>
      <description>&lt;p&gt;Complete video at: &lt;a href="https://youtu.be/-Ql4vgyfo00"&gt;https://youtu.be/-Ql4vgyfo00&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Advanced React - Abort API Request on Unmounting</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Fri, 02 Sep 2022 20:10:37 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/advanced-react-abort-api-request-on-unmounting-213</link>
      <guid>https://dev.to/ministryofjavascript/advanced-react-abort-api-request-on-unmounting-213</guid>
      <description>&lt;p&gt;Complete video at: &lt;a href="https://youtu.be/MEIAOiRysi0"&gt;https://youtu.be/MEIAOiRysi0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Master Axios in ReactJS</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Wed, 31 Aug 2022 09:00:34 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/master-axios-in-reactjs-2690</link>
      <guid>https://dev.to/ministryofjavascript/master-axios-in-reactjs-2690</guid>
      <description>&lt;p&gt;Complete video at: &lt;a href="https://youtu.be/wz2XMVxfoio"&gt;https://youtu.be/wz2XMVxfoio&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Master API Integration in React</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Tue, 30 Aug 2022 12:09:31 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/master-api-integration-in-react-2ki</link>
      <guid>https://dev.to/ministryofjavascript/master-api-integration-in-react-2ki</guid>
      <description>&lt;p&gt;Complete video at: &lt;a href="https://youtu.be/zk0QRO4Low0"&gt;https://youtu.be/zk0QRO4Low0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>react</category>
    </item>
    <item>
      <title>Master Higher Order Component in React</title>
      <dc:creator>Ministry of JavaScript</dc:creator>
      <pubDate>Mon, 29 Aug 2022 16:27:16 +0000</pubDate>
      <link>https://dev.to/ministryofjavascript/master-higher-order-component-in-react-4e5</link>
      <guid>https://dev.to/ministryofjavascript/master-higher-order-component-in-react-4e5</guid>
      <description>&lt;p&gt;Complete video at: &lt;a href="https://www.youtube.com/watch?v=qXoiQ0PSi6E"&gt;https://www.youtube.com/watch?v=qXoiQ0PSi6E&lt;/a&gt;&lt;/p&gt;

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