<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Samuel Makinde on Medium]]></title>
        <description><![CDATA[Stories by Samuel Makinde on Medium]]></description>
        <link>https://medium.com/@samuelmakinde19?source=rss-15780f3f48b3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TeAUS4U_etxqm99zqxip4Q.jpeg</url>
            <title>Stories by Samuel Makinde on Medium</title>
            <link>https://medium.com/@samuelmakinde19?source=rss-15780f3f48b3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:31:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuelmakinde19/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Redux Toolkit vs Context API: The Ultimate React State Management Guide]]></title>
            <link>https://medium.com/@samuelmakinde19/redux-toolkit-vs-context-api-the-ultimate-react-state-management-guide-48743cf9f0a9?source=rss-15780f3f48b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/48743cf9f0a9</guid>
            <dc:creator><![CDATA[Samuel Makinde]]></dc:creator>
            <pubDate>Sat, 22 Feb 2025 12:33:55 GMT</pubDate>
            <atom:updated>2025-02-22T12:33:55.923Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction</strong></p><p>As a software developer, decision-making is a key part of the job. If you lead a tech team, your ability to oversee technical decisions often distinguishes you from the crowd. One of the most critical choices in React development is how to manage state effectively.</p><p>State management plays a crucial role in building scalable, maintainable applications. The right choice can enhance performance and developer experience, while the wrong one can introduce unnecessary complexity.</p><p>Among the many tools available, Redux Toolkit and Context API are two of the most popular. But when should you use one over the other? Let’s break it down.</p><p><em>Hey there! I’m Samuel Makinde, a full-stack developer specializing in React, Node.js, Python, A.I integration and cloud automation. I build SaaS platforms and automation tools. Let’s connect!<br>📌 Twitter: @</em><a href="https://x.com/code_mankind"><em>YourTwitter</em></a><em> | LinkedIn: </em><a href="https://www.linkedin.com/in/samuel-tobi-makinde/"><em>Your LinkedIn</em></a></p><p><strong>🔍 Understanding State Management in React</strong></p><p>State in React applications can be classified into different levels:</p><ol><li><strong>Local State Management</strong>: Managing state within a single component or a small group of components using useState or useReducer.</li><li><strong>Global State Management</strong>: Managing application-wide state shared across multiple components using state management libraries (Redux, Zustand) or React’s built-in Context API</li><li><strong>Server-side State Management</strong>: Managing remote data fetched from APIs, often handled using tools like React Query or Redux Toolkit’s RTK Query.</li></ol><p>Choosing the right approach ensures smooth performance and a better developer experience.</p><p><strong>🎯 What is Context API?</strong></p><p>Context API is <strong>built into React</strong>, allowing developers to share state across multiple components without using third-party libraries. It’s lightweight, easy to set up, and works well for managing <strong>UI-related state</strong>, such as authentication, themes, and language preferences.</p><p><strong>✔️ When to Use Context API</strong></p><ul><li>✅ Small to medium applications with minimal global state<br>✅ Managing UI-related state (e.g., dark mode, language settings, authentication status)<br>✅ When avoiding additional dependencies like Redux</li></ul><p><strong>🚀 Pros of Context API</strong></p><ul><li>✔️ Built-in, no extra installation required<br>✔️ Simple and easy to implement<br>✔️ Great for lightweight state management</li></ul><p><strong>⚠️ Cons of Context API</strong></p><ul><li>❌ Can cause unnecessary re-renders if not optimized<br>❌ Not ideal for complex, large-scale state management<br>❌ Might not scale well in large teams</li></ul><p><strong>🚀 What is Redux Toolkit?</strong></p><p>Redux Toolkit (RTK) is the <strong>modern, recommended way to use Redux</strong> in React applications. It simplifies state management by reducing boilerplate code and improving performance.</p><p>Redux is particularly useful for managing <strong>large, complex state</strong> that is frequently updated across multiple components. It also comes with <strong>powerful debugging tools</strong> like Redux DevTools.</p><p><strong>✔️ When to Use Redux Toolkit</strong></p><p>✅ Large-scale applications with complex state management needs<br>✅ When multiple components need to access and modify the same data<br>✅ When you need <strong>advanced debugging tools</strong> and middleware support<br>✅ When handling <strong>async operations</strong> like API data fetching (RTK Query)</p><p><strong>🚀 Pros of Redux Toolkit</strong></p><p>✔️ Scales well for large applications<br>✔️ Centralized and predictable state management<br>✔️ Built-in support for async actions (e.g., API calls)<br>✔️ Ideal for large teams and enterprise projects</p><p><strong>⚠️ Cons of Redux Toolkit</strong></p><p>❌ Requires additional setup compared to Context API<br>❌ Might be overkill for small projects<br>❌ Has a learning curve, especially for beginners</p><p><strong>Redux Toolkit vs Context API: Which One Should You Choose?</strong></p><p>Best for:</p><ul><li><strong>Context API:</strong> Small to medium-sized applications with minimal global state.</li><li><strong>Redux Toolkit:</strong> Large-scale applications with complex state management needs.</li></ul><p>Setup Complexity:</p><ul><li><strong>Context API:</strong> Simple and built into React (no extra dependencies).</li><li><strong>Redux Toolkit:</strong> Requires setup but offers structured state management.</li></ul><p>Performance Considerations:</p><ul><li><strong>Context API:</strong> Can cause unnecessary re-renders if not optimized.</li><li><strong>Redux Toolkit:</strong> Optimized for performance with built-in best practices.</li></ul><p>Async Support:</p><ul><li><strong>Context API:</strong> No built-in support for async operations.</li><li><strong>Redux Toolkit:</strong> Comes with powerful async support via <strong>RTK Query</strong> and <strong>Redux Thunk</strong>.</li></ul><p>DevTools Integration:</p><ul><li><strong>Context API:</strong> No built-in debugging tools.</li><li><strong>Redux Toolkit:</strong> Integrates with <strong>Redux DevTools</strong> for easier debugging.</li></ul><p><strong>Conclusion</strong></p><p>Choosing between Redux Toolkit and Context API depends on your application’s needs. If your app is small and doesn’t require complex state management, Context API is a great choice. However, if you’re working on a scalable application with dynamic and shared state, Redux Toolkit is the way to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48743cf9f0a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create and Validate Subdomains in Azure Using Node.js]]></title>
            <link>https://medium.com/@samuelmakinde19/how-to-create-and-validate-subdomains-in-azure-using-node-js-7b6d28d49f10?source=rss-15780f3f48b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6d28d49f10</guid>
            <dc:creator><![CDATA[Samuel Makinde]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 12:40:49 GMT</pubDate>
            <atom:updated>2025-02-15T12:40:49.543Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jzh6FmHucFHEzoUEkVcZGw.jpeg" /></figure><h3>Introduction</h3><p>Managing custom subdomains is essential for businesses that provide hosted services under personalized domains. In this guide, I’ll walk you through <strong>automating subdomain creation on Azure</strong> using <strong>Node.js</strong>. This process involves:</p><p>✅ Creating <strong>TXT records</strong> for domain verification<br>✅ Adding <strong>CNAME records</strong> to point the subdomain to an Azure App Service<br>✅ Binding the subdomain to an <strong>Azure Web App</strong></p><p>By the end of this tutorial, you will be able to programmatically create and validate subdomains using <strong>Azure DNS and App Service</strong> via a <strong>Node.js API</strong>. Eg <a href="https://bettybeauty.dimpified.com/">https://bettybeauty.dimpified.com/</a> was created from <a href="https://dimpified.com/">https://dimpified.com/</a></p><blockquote>Hey there! I&#39;m Samuel Makinde, a full-stack developer specializing in React, Node.js, Python, A.I integration and cloud automation. I build SaaS platforms and automation tools. Let&#39;s connect!<br>📌 Twitter: @<a href="https://x.com/code_mankind">YourTwitter</a> | LinkedIn: <a href="https://www.linkedin.com/in/samuel-tobi-makinde/">Your LinkedIn</a></blockquote><h3>Prerequisites</h3><p>Before we begin, make sure you have the following:</p><ul><li>An <strong>Azure account</strong> with an active subscription.</li><li>A <strong>Node.js</strong> development environment set up with express.js installed.</li><li>An <strong>Azure App Service</strong> already created.</li><li>A <strong>DNS Zone</strong> configured in <strong>Azure DNS</strong>.</li></ul><p>Visit: <a href="https://azure.microsoft.com/">https://azure.microsoft.com/</a> to create your Azure account and set up the necessary prerequisites listed above. To set up your credentials, follow the steps listed below or skip to install the necessary packages.</p><h3>1.1 Register an Azure App</h3><p>To interact with Azure APIs, create an <strong>App Registration</strong> in <strong>Azure Active Directory</strong>:</p><ol><li>Go to <strong>Azure Portal</strong> → <strong>Azure Active Directory</strong></li><li>Navigate to <strong>App Registrations</strong> → Click <strong>New registration</strong></li><li>Enter a name and select <strong>Accounts in this organizational directory only</strong></li><li>Click <strong>Register</strong></li></ol><h3>1.2 Generate a Client Secret</h3><ol><li>Go to <strong>Certificates &amp; Secrets</strong></li><li>Click <strong>New Client Secret</strong>, set an expiration time, and save the <strong>secret value</strong></li></ol><h3>1.3 Assign API Permissions</h3><ul><li>Navigate to <strong>API Permissions</strong></li><li>Click <strong>Add a permission</strong></li><li>Choose <strong>Azure Service Management</strong> → <strong>Delegated Permissions</strong> → <strong>user_impersonation</strong></li></ul><h3>1.4 Grant Access to the App Service and DNS</h3><ul><li>Go to <strong>Azure Portal</strong> → <strong>Resource Group</strong> → <strong>Access Control (IAM)</strong></li><li>Click <strong>Add role assignment</strong></li><li>Select <strong>DNS Zone Contributor</strong> and assign it to the registered app</li><li>Do the same for <strong>Website Contributor</strong> under the App Service</li></ul><p>Installed the necessary Node.js packages:</p><pre>npm install @azure/identity @azure/arm-appservice @azure/arm-dns </pre><p>Create a .env file after installing the packages, and add the listed information below from your App Service Account</p><pre>TENANT_ID=your-tenant-id<br>CLIENT_ID=your-client-id<br>CLIENT_SECRET=your-client-secret<br>SUBSCRIPTION_ID=your-subscription-id<br>RESOURCE_GROUP_NAME=your-resource-group<br>APP_SERVICE_NAME=your-app-service-name<br>DNS_ZONE_NAME=yourPurchasedDomainName.com<br>AZURE_CNAME=yourAzureFrontendDomain.azurewebsites.net</pre><h3>Step 1: Setting Up Azure Authentication in Node.js</h3><p>Before we dive deep into the subdomain creation, we need to interact with <strong>Azure DNS</strong> and <strong>App Service</strong> so Azure can authenticate your access to perform this operation from the @azure/identity package we installed in the previous step. Create a file called Subdomain.js(or your chosen name) in your node.js application and copy the code below</p><pre>const { ClientSecretCredential } = require(&quot;@azure/identity&quot;);<br>const { DnsManagementClient } = require(&quot;@azure/arm-dns&quot;);<br>const { WebSiteManagementClient } = require(&quot;@azure/arm-appservice&quot;);<br><br><br>const subscriptionId = process.env.AZURE_SUBSCRIPTION_ID;<br>const resourceGroupName = process.env.AZURE_RESOURCE_GROUP;<br>const zoneName = process.env.AZURE_ZONE_NAME;<br>const appServiceName = process.env.AZURE_APP_SERVICE_NAME;<br><br>  const credential = new ClientSecretCredential(<br>            process.env.TENANT_ID, <br>            process.env.CLIENT_ID, <br>            process.env.VALUE <br>        );<br></pre><h3>Step 2: Create Hostname Binding (to get TXT validation token)</h3><pre>const fullDomain = `${subdomain}.${zoneName}`;<br><br>const dnsClient = new DnsManagementClient(credential, subscriptionId);<br>const webClient = new WebSiteManagementClient(credential, subscriptionId);<br><br>        const hostnameBindingParams = {<br>            hostnameBindingName: subdomain,<br>            location: &quot;Global&quot;,<br>            siteName: appServiceName,<br>            properties: {<br>                customHostNameDnsRecordType: &quot;CName&quot;,<br>                hostNameType: &quot;Verified&quot;,<br>            },<br>        };<br><br>        let validationToken;<br>        try {<br>            await webClient.webApps.createOrUpdateHostNameBinding(<br>                resourceGroupName,<br>                appServiceName,<br>                fullDomain,<br>                hostnameBindingParams<br>            );<br>        } catch (error) {<br>            const match = error.details?.Message?.match(/asuid\.[^\s]+ to ([^\s]+)/);<br>            if (match) {<br>                validationToken = match[1];<br>                console.log(`Validation token for ${fullDomain}: ${validationToken}`);<br>            } else {<br>                throw new Error(&quot;Failed to extract validation token.&quot;);<br>            }<br>        }</pre><p>Explanations of some information above <br>subdomain: name of customer business name that will be attached to the domain name for subdomain creation<br>validationToken: this will be returned by Azure to validate your identity</p><h3>Step 3: Create the TXT record with the validation token</h3><p>Before binding the subdomain to the App Service, <strong>Azure requires a TXT record</strong> to verify domain ownership.</p><pre>const txtRecordParams = {<br>            ttl: 3600,<br>            txtRecords: [{ value: [validationToken] }],<br>        };<br><br>        await dnsClient.recordSets.createOrUpdate(<br>            resourceGroupName,<br>            zoneName,<br>            `asuid.${subdomain}`,<br>            &quot;TXT&quot;,<br>            txtRecordParams<br>        );<br><br>        console.log(&quot;Waiting for DNS propagation...&quot;);<br>        await new Promise(resolve =&gt; setTimeout(resolve, 10000)); // 10 seconds delay needed for Azure to propagate. You might need to increase this</pre><h3>Step 4: Create the CNAME record</h3><p>For users to access the subdomain, we need to add a <strong>CNAME</strong> or <strong>A record</strong> in Azure DNS.</p><pre> const cnameRecordParams = {<br>            ttl: 3600,<br>            cnameRecord: { cname: appServiceCNAME },<br>        };<br><br>        await dnsClient.recordSets.createOrUpdate(<br>            resourceGroupName,<br>            zoneName,<br>            subdomain,<br>            &quot;CNAME&quot;,<br>            cnameRecordParams<br>        );</pre><h3>Step 5: Re-attempt hostname binding for final validation</h3><p>Once the TXT record and CNAME are created, we can bind the subdomain to <strong>Azure App Service</strong></p><pre>await webClient.webApps.createOrUpdateHostNameBinding(<br>            resourceGroupName,<br>            appServiceName,<br>            fullDomain,<br>            hostnameBindingParams<br>        );</pre><p>In the steps above, we can see how to create a function that automates subdomain creation on Azure through Node API.</p><p>full helper function. Please note that to make this a standalone function, edit the last return statement.</p><pre>const { ClientSecretCredential } = require(&quot;@azure/identity&quot;);<br>const { DnsManagementClient } = require(&quot;@azure/arm-dns&quot;);<br>const { WebSiteManagementClient } = require(&quot;@azure/arm-appservice&quot;);<br><br>const subscriptionId = process.env.AZURE_SUBSCRIPTION_ID;<br>const resourceGroupName = process.env.AZURE_RESOURCE_GROUP;<br>const zoneName = process.env.AZURE_ZONE_NAME;<br>const appServiceName = process.env.AZURE_APP_SERVICE_NAME;<br>const appServiceCNAME = process.env.AZURE_CNAME; <br><br>const createSubdomain = async (subdomain) =&gt; {<br>    try {<br>        const fullDomain = `${subdomain}.${zoneName}`;<br><br>        // Initialize Azure Clients<br>        const credential = new ClientSecretCredential(<br>            process.env.TENANT_ID,<br>            process.env.CLIENT_ID,<br>            process.env.VALUE<br>        );<br>        const dnsClient = new DnsManagementClient(credential, subscriptionId);<br>        const webClient = new WebSiteManagementClient(credential, subscriptionId);<br><br>        // Step 1: Create Hostname Binding (to get TXT validation token)<br>        const hostnameBindingParams = {<br>            hostnameBindingName: subdomain,<br>            location: &quot;Global&quot;,<br>            siteName: appServiceName,<br>            properties: {<br>                customHostNameDnsRecordType: &quot;CName&quot;,<br>                hostNameType: &quot;Verified&quot;,<br>            },<br>        };<br><br>        let validationToken;<br>        try {<br>            await webClient.webApps.createOrUpdateHostNameBinding(<br>                resourceGroupName,<br>                appServiceName,<br>                fullDomain,<br>                hostnameBindingParams<br>            );<br>        } catch (error) {<br>            const match = error.details?.Message?.match(/asuid\.[^\s]+ to ([^\s]+)/);<br>            if (match) {<br>                validationToken = match[1];<br>                console.log(`Validation token for ${fullDomain}: ${validationToken}`);<br>            } else {<br>                throw new Error(&quot;Failed to extract validation token.&quot;);<br>            }<br>        }<br><br>        // Step 2: Create the TXT record with the validation token<br>        const txtRecordParams = {<br>            ttl: 3600,<br>            txtRecords: [{ value: [validationToken] }],<br>        };<br><br>        await dnsClient.recordSets.createOrUpdate(<br>            resourceGroupName,<br>            zoneName,<br>            `asuid.${subdomain}`,<br>            &quot;TXT&quot;,<br>            txtRecordParams<br>        );<br><br>        console.log(`TXT record created for asuid.${fullDomain}`);<br><br>        // Step 3: Wait for DNS propagation (Recommended: 1-2 minutes)<br>        console.log(&quot;Waiting for DNS propagation...&quot;);<br>        await new Promise(resolve =&gt; setTimeout(resolve, 10000)); // 10-second delay<br><br>        // Step 4: Create the CNAME record<br>        const cnameRecordParams = {<br>            ttl: 3600,<br>            cnameRecord: { cname: appServiceCNAME },<br>        };<br><br>        await dnsClient.recordSets.createOrUpdate(<br>            resourceGroupName,<br>            zoneName,<br>            subdomain,<br>            &quot;CNAME&quot;,<br>            cnameRecordParams<br>        );<br><br>        console.log(`CNAME record created for ${fullDomain}`);<br><br>        // Step 5: Re-attempt hostname binding for final validation<br>        await webClient.webApps.createOrUpdateHostNameBinding(<br>            resourceGroupName,<br>            appServiceName,<br>            fullDomain,<br>            hostnameBindingParams<br>        );<br><br>        console.log(`Subdomain ${fullDomain} successfully created and validated!`);<br>        return &quot;Subdomain creation successful&quot;;<br>    } catch (error) {<br>        console.error(&quot;Error in automation:&quot;, error.message);<br>        throw error;<br>    }<br>};</pre><h3>Conclusion</h3><p>With this approach, we automated:<br>✅ Generating a <strong>TXT validation record</strong><br>✅ Adding a <strong>CNAME record</strong> for subdomain routing<br>✅ Binding the subdomain to an <strong>Azure App Service</strong></p><p>This method ensures that your subdomains are <strong>automatically validated</strong> and secured, making it ideal for <strong>multi-tenant applications and SaaS platforms</strong>. 🚀 Follow me to learn how to automate SSL certification on your subdomain</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6d28d49f10" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to implement Google sign-up option using React OAuth2 | Google]]></title>
            <link>https://medium.com/@samuelmakinde19/how-to-implement-google-sign-up-option-using-react-oauth2-google-7bc7393adb16?source=rss-15780f3f48b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bc7393adb16</guid>
            <dc:creator><![CDATA[Samuel Makinde]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 20:58:16 GMT</pubDate>
            <atom:updated>2023-04-29T20:58:16.600Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4n3HMQ8UgD9nMyFmfbSdbQ.jpeg" /><figcaption>Image by <a href="https://pixabay.com/users/tayebmezahdia-4194100/?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3174729">Tayeb MEZAHDIA</a> from <a href="https://pixabay.com//?utm_source=link-attribution&amp;utm_medium=referral&amp;utm_campaign=image&amp;utm_content=3174729">Pixabay</a></figcaption></figure><p>The developer team in charge of updating react google sign-up/sign-out has stopped package support for the react-google-login method of adding google sign-up/ sign-out option in the registration and login page and has introduced @react-oauth/google as the new method of adding Google sign-in/sign-out option to react project.</p><p>The method to implement this is similar to the old method with few changes in the area of dependency to install and how to structure your code. let’s work through the process below</p><p>Note. You have to create react app before following this step. To create your react app, follow the process at this link <a href="https://www.w3schools.com/react/react_getstarted.asp">https://www.w3schools.com/react/react_getstarted.asp</a></p><ol><li>The first step is to install @react-oauth/google by copying any of the commands below to your project terminal</li></ol><p>npm install <strong><em>@react-oauth/google@latest</em></strong></p><p><strong><em># or</em></strong></p><p><strong><em>yarn add @react-oauth/google@latest</em></strong></p><p>2. Next add this at the top of your project file import {GoogleOAuthProvider} from ‘@react-oauth/google’;</p><p>3. Based on your project requirement, add the Googlelogin import { GoogleLogin } from ‘@react-oauth/google’; and import { googleLogout } from ‘@react-oauth/google’; at the top of your project file</p><p>4. Add this tag to your function return div or fragment in your project file which will wrap any code that is part of the google sign-up/sign-in option&lt;GoogleOAuthProvider clientId=”&lt;your_client_id&gt;”&gt;…&lt;/GoogleOAuthProvider&gt;;</p><p>5. Add this code in the middle of the Google0AuthProvide tag</p><p>&lt;GoogleLogin<br> onSuccess={credentialResponse =&gt; {<br> console.log(credentialResponse);<br> }}<br> onError={() =&gt; {<br> console.log(‘Login Failed’);<br> }}<br>/&gt;;</p><p>Note: you can modify this to your taste. check <a href="https://www.npmjs.com/package/@react-oauth/google">https://www.npmjs.com/package/@react-oauth/google</a> to add more features to this</p><blockquote>For your code to work, you need to create Google client ID to replace &lt;your_client_id&gt; in your wrapper &lt;GoogleOAuthProvider clientId=”&lt;your_client_id&gt;”&gt;…&lt;/GoogleOAuthProvider&gt;;</blockquote><p>Thanks.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bc7393adb16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benefit of using useForm hook in creating Login and Registration form]]></title>
            <link>https://medium.com/@samuelmakinde19/benefit-of-using-useform-hook-in-creating-login-and-registration-form-f7914f464a54?source=rss-15780f3f48b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7914f464a54</guid>
            <dc:creator><![CDATA[Samuel Makinde]]></dc:creator>
            <pubDate>Fri, 28 Apr 2023 12:33:24 GMT</pubDate>
            <atom:updated>2023-04-28T12:33:24.933Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*clvMqmFpxUyolo36_IiOcw.jpeg" /></figure><p>Before the release and popularity of the useForm custom hook, useState was widely used to hold the login/registration tag. useState succeeded in doing this, but the line of code to create a form is always long and can create some unexpected behavior if not properly written. Validating and displaying an error message when using useState is one common part where programmers find the useState method of creating a form difficult to use.</p><p>View the code below to get a view of how to create a login form with the useState hook.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Ftrusting-cloud-u8xoo0%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;display_name=CodeSandbox&amp;url=https%3A%2F%2Fcodesandbox.io%2Fembed%2Ftrusting-cloud-u8xoo0%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Fu8xoo0%2Fscreenshot.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/2933faa53cefb4ba98bc20bcbc79af81/href">https://medium.com/media/2933faa53cefb4ba98bc20bcbc79af81/href</a></iframe><p>The code to create the registration form above is long. in-light of all this short coming, the useform was released to handle most of the logic that we use in writing a registration/login form while also providing more stable code.</p><p>useForm handles most of the logic like an error message and input validation we need to write to be able to create a form. useForm also provides built-in method like delayError, reValidateMode, watch, setValue, trigger, control, schema validation props and form among others</p><p>let recreate the registration page above using the useForm hook and yup library.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fflamboyant-jennings-8bth9f%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;display_name=CodeSandbox&amp;url=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fflamboyant-jennings-8bth9f%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2F8bth9f%2Fscreenshot.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f9fe77a78d444294ec9ba86ed18a42a/href">https://medium.com/media/9f9fe77a78d444294ec9ba86ed18a42a/href</a></iframe><p>with the code above, we only need to add a few lines of code to be able to write a standard registration form with the assurance that our code is stable and won’t give unexpected behavior.</p><p>To understand the full properties of useForm hook, visit <a href="https://react-hook-form.com/get-started/">https://react-hook-form.com/get-started/</a> to get a proper understanding of how to install useForm in your project. for schema validation visit <a href="https://react-hook-form.com/get-started/#SchemaValidation">https://react-hook-form.com/get-started/#SchemaValidation</a></p><p>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7914f464a54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IMPORTANCE OF PEER LEARNING!]]></title>
            <link>https://medium.com/@samuelmakinde19/importance-of-peer-learning-6cd7bb336dcf?source=rss-15780f3f48b3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cd7bb336dcf</guid>
            <dc:creator><![CDATA[Samuel Makinde]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 07:04:41 GMT</pubDate>
            <atom:updated>2022-02-15T07:04:41.799Z</atom:updated>
            <content:encoded><![CDATA[<p>Peer learning serves as a way to get a better understanding of a concept or problem as it gives room for the group of individuals to share their thought on such a topic and also agree on the best way to better tackle such a problem.</p><p>Peer learning has been crucial in getting tasks that look impossible solved. But it must also be noted that to be able to tap into the full potential of peer learning, such individuals must have prior knowledge of the task and also must have carried out is/her research on such topic/task/project to be able to benefit in peer learning and also gain additional knowledge to what have been known to such individual.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd7bb336dcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>