<?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 Olorunsola Victor on Medium]]></title>
        <description><![CDATA[Stories by Olorunsola Victor on Medium]]></description>
        <link>https://medium.com/@olorunsolavictorp?source=rss-fc5b00a8db2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5QbAc4dUF3FHmKLr</url>
            <title>Stories by Olorunsola Victor on Medium</title>
            <link>https://medium.com/@olorunsolavictorp?source=rss-fc5b00a8db2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:08:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@olorunsolavictorp/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[Title: Creating Robust Reusable Input Fields: A Comprehensive Guide for Frontend Developers]]></title>
            <link>https://medium.com/@olorunsolavictorp/title-creating-robust-reusable-input-fields-a-comprehensive-guide-for-frontend-developers-798339623e26?source=rss-fc5b00a8db2------2</link>
            <guid isPermaLink="false">https://medium.com/p/798339623e26</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Olorunsola Victor]]></dc:creator>
            <pubDate>Mon, 18 Dec 2023 18:58:56 GMT</pubDate>
            <atom:updated>2023-12-18T19:44:34.958Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of frontend development, crafting a reusable input field demands careful consideration of various scenarios to ensure a seamless user experience. Let’s explore the essential aspects that should be prioritized in the development process.</p><p>1. Basic Input Functionality (Top Priority):</p><p>At the core of any input field lies its ability to handle standard text and numeric input effectively. Ensuring this fundamental functionality is the first and foremost priority for frontend developers.</p><p>2. Accessibility (Ensuring Inclusivity):</p><p>Accessibility is key in today’s digital landscape. Make your input field usable for everyone by incorporating proper labels, ARIA attributes, and ensuring seamless keyboard navigation.</p><p>3. Validation (Maintaining Data Integrity):</p><p>Implementing proper validation mechanisms is crucial. It not only maintains data integrity but also prevents errors, contributing to a more reliable and user-friendly experience.</p><p>4. Error State (Clear Indication and Guidance):</p><p>Clear error indication and guidance are paramount. Users should easily understand when an error occurs and receive helpful instructions on how to rectify it.</p><p>5. Security Measures (Protecting Sensitive Data):</p><p>Security should be at the forefront, especially when dealing with sensitive user information. Implement measures to safeguard data and prevent common vulnerabilities.</p><p>6. Thorough Testing Across Scenarios:</p><p>Rigorous testing across various scenarios is essential to identify and address potential issues early in the development process. This ensures a robust and bug-free input field.</p><p>7. Responsive Design (Adapting to Different Devices):</p><p>In our multi-device world, ensuring responsiveness is crucial. Make certain that your input field adapts seamlessly to various screen sizes and devices.</p><p>8. Styling Customization (Flexibility in Design):</p><p>Allowing for customization of the input field’s appearance through CSS supports flexibility in adapting to different design requirements without compromising functionality.</p><p>9. Event Handling (Dynamic and Responsive UI):</p><p>Properly handling events like onChange and onBlur contributes to a dynamic and responsive user interface, enhancing the overall user experience.</p><p>10. Support for Default Values:</p><p>Supporting default values provides users with a starting point, enhancing convenience and efficiency.</p><p>In crafting an exemplary input field, consider the following features of slightly lower priority:</p><p>11. Focus State (Clear Indication of Focus):</p><p>Although slightly lower in priority, clear indication of focus contributes to a positive user experience.</p><p>12. Placeholder Text (Providing Hints or Examples):</p><p>While helpful, placeholder text is secondary to other features and should be considered accordingly.</p><p>13. Character Limit (When Applicable):</p><p>. Implementing character limits becomes important in specific contexts but may not be universally crucial.</p><p>14. Clear Button (Convenience Feature):</p><p>The clear button, while convenient for users, is a secondary feature and may not be essential for all input fields.</p><p>15. Browser Autofill Handling:</p><p>Ensuring smooth handling of browser autofill features is crucial for user convenience but is not a top-tier consideration.</p><p>16. Password Visibility Toggle:</p><p>The ability to toggle password visibility is a specific feature and may not be universally necessary.</p><p>17. Proper Handling of Disabled State:</p><p>. While important, handling the disabled state is often straightforward to implement and may be of slightly lower priority.</p><p>18. Read-only Mode Support:</p><p>. Supporting a read-only mode is valuable but may be less critical than other features in certain contexts.</p><p>19. Localization (For Global Applications):</p><p>. Essential for global applications, localization may be of lower priority for projects with a more localized user base.</p><p>20. Browser Compatibility (Addressed During Testing):</p><p>Ensuring compatibility across browsers is vital but can often be addressed during the testing phase of development.</p><p>By following this comprehensive guide and prioritizing these aspects, front-end developers can create reusable input fields that not only meet the immediate project requirements but also provide a foundation for a positive and user-friendly digital experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=798339623e26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stutern Housemanship — Handout Documentation by Olorunsola Victor]]></title>
            <link>https://medium.com/@olorunsolavictorp/stutern-housemanship-handout-documentation-implementing-prettier-by-olorunsola-victor-2d9a2784cf8b?source=rss-fc5b00a8db2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d9a2784cf8b</guid>
            <category><![CDATA[jsx]]></category>
            <category><![CDATA[prettier]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[stutern-housemanship]]></category>
            <dc:creator><![CDATA[Olorunsola Victor]]></dc:creator>
            <pubDate>Sun, 16 Oct 2022 11:51:37 GMT</pubDate>
            <atom:updated>2022-12-11T12:15:16.087Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-diH8bFq-S5qpbIO0fJgQ.png" /><figcaption>Article Image</figcaption></figure><h3>Task 1 — Implementing Prettier to Handout Project</h3><h3>What is Prettier?</h3><p>Prettier is an opinionated code formatter that is compatible with most Programming languages. It reduces “coding time” and enhances code organization.</p><h3>Task 1A— Installing Prettier Locally</h3><p><strong>Step 1</strong> — I installed Prettier locally using <em>npm</em>.</p><pre>npm install --save-dev prettier eslint-plugin-prettier eslint-config-prettier</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-pa_XeKq847ILxjq6Pu8A.png" /><figcaption>The version of Prettier installed shows up as one of the dependencies.</figcaption></figure><p><strong>Step 2</strong> — Then, I created an .prettierrc.json file to let editors and other tools know I am using Prettier. I used some basic configurations to make sure prettier works on the project.</p><pre> .prettierrc.json</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bselqpiOqeeZLC0pqGeCPg.png" /><figcaption>setting up a .prettierrc.json file with sample configurations.</figcaption></figure><pre>{<br> &quot;singleQuote&quot;: false<br>  &quot;endOfLine&quot;: &quot;auto&quot;<br>}</pre><p>If you are using windows machine “endOfLine” can be “crlf” basing on your git config.</p><p><strong>Step 3</strong>— I created a .prettierignore file to let the Prettier CLI and editors know which files to <em>not</em> format.</p><pre>node_modules/<br>public/<br>build/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DSFHmt0PPVrKhRJNPBmHiQ.png" /><figcaption>creating a .prettierignore file.</figcaption></figure><p><strong>Step 4</strong>— I formatted all files with Prettier using <em>npx </em>to be sure prettier works<em>.</em></p><pre>npx prettier --write .</pre><p><strong>Step 5</strong>— I added Scripts in package.json and ran the eslint and prettier for lint.I then formatted my code.</p><pre> “lint”: “eslint ./”,<br> “lint-fix”: “eslint ./ — fix”,<br> “format”: “prettier — write \”**/*.{js,jsx,json,md}\””</pre><h3>Task 1B—Integrating Prettier with my code editor (Visual Studio Code)</h3><p>I set up my editor by installing “Prettier — Code formatter.” using the extension sidebar on my code editor (Visual Studio Code).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynRAgmwE1Ae6O7RABK5zqQ.png" /><figcaption>Installing Prettier from my side extension on VS Code</figcaption></figure><p>I hope you found these helpful.</p><h3>Task 2— Implementing Routes pages using React Router</h3><p>With react router dom installed, I created temporary “SignUp” and “LogIn” pages and together with Home page I matched their routes to the URL. Since certain pages in the project will require authentication, I needed to protect some routes. The protected routes can only be accessed on successful authentication. This Task was implemented as follows:</p><p><strong>Step 1</strong> — I created a “url” component in the src folder and and stored the the routes in functions depending on whether they will require authentication or not. As at this time of writing this, the dashboard page had not been created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hu6mpbcr0TGHHBNZ4vf9TA.png" /><figcaption>Creating separate functions for Authenticated and Non-Authenticated routes</figcaption></figure><p><strong>Step 2— </strong>I created a “router” component where I matched all routes with the URL and wrapped the routes in a “suspense” tag imported from React , using the two functions exported from the “url.jsx” file. The suspense tag sets the display to loading, using an svg loading-icon, that rotates with the help of CSS. Also, I implemented lazy routing in all the pages by wrapping each path in a variable that calls the lazy router method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0_RUIPimAWLbLkXis8KsQ.png" /><figcaption>implementing lazy routing in the router component.</figcaption></figure><p><strong>Step 3—</strong> I nested the router component in the app component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mqy0VoUZ3b-GSOuvN5XXg.png" /><figcaption>Nesting the newly created router component in the app component</figcaption></figure><p><strong>Step 4—</strong> I styled the loading-icon in the index.css file to make it spin upon display.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qJ9wXhx53wHlVGCAu84fsg.png" /><figcaption>Styling the loading-icon</figcaption></figure><p>I hope this helps.</p><h3>Task 3 — Implementing layout and functionality for reset password pages 1 &amp; 2, Forgot password pages 1 &amp; 2</h3><p>To achieve this, I needed to create 3 pages each, one for the user to input their old and new passwords or email and another to tell the user that the account/password has been recovered or not if an attempt was made to reset the password.</p><h4>Task 3A<strong> </strong>—<strong> Implementing layout and functionality for reset password pages 1 &amp; 2</strong></h4><p><strong>Step 1</strong>— <strong>Creating the pages.</strong></p><p>I created a new file in the “pages” folder and named it ResetPassword.js. I then proceeded to implement the layout using tailwind.CSS to add the necessary styles as specified in the provided figma design.</p><p>I created the rest password error and success pages in the components folder and it represents a feedback page to tell the user that their password has been reset successfully or not depending on the response from the API if the user inputs have been validated. I styled these component using tailwindCSS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzEZiIwhs7DaGdCo7341pQ.png" /><figcaption>Creating a ResetPassword file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNrnc0jBdiVRcxx9Ra-FXQ.png" /><figcaption>Reset Password layout.</figcaption></figure><p><strong>Step 2</strong>— <strong>Routing the pages.</strong></p><p>In the ResetPassword.js, I imported useNavigate from react-router-dom. “useNavigate” is method used for changing location. I called the method and stored its value in a variable which I named “navigate”. This is a conventional pattern that comes with react-router.</p><pre>import { useNavigate } from “react-router-dom”;<br>const navigate = useNavigate();</pre><p>.</p><h4>Task 3B<strong> — Implementing layout and functionality for Forgot password pages 1 &amp; 2</strong></h4><p><strong>Step 1</strong>— <strong>Creating the pages.</strong></p><p>Using the same method as in creating a ResetPassword page, I also created a ForgotPassword page that contains one input this time for users to input their email address which will triger a reset password.</p><p>I created the forgot password success and error pages in the components folder and it represents a feedback page to tell the user if their account has been recovered successfully or not depending on the response from the API if the user inputs have been validated. I styled these component using tailwindCSS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hkrenylxjdTOXM60KG-SCA.png" /><figcaption>ForgotPassword page Layout</figcaption></figure><p><strong>Step 2</strong> — <strong>Routing the pages.</strong></p><p>In the ForgotPassword.js, I imported useNavigate from react-router-dom. “useNavigate” is method used for changing location. I called the method and stored its value in a variable which I named “navigate”. This is a conventional pattern that comes with react-router.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CFBgSUXwzpASkCbgeBq3hQ.png" /><figcaption>creating the error and success pages for password reset.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BA9WtuN1SpPGPzil9MeoYw.png" /><figcaption>Layout for the error or success pages.</figcaption></figure><pre><em>const</em> handleResetPassword = (<em>e</em>) =&gt; {<br>e.preventDefault();</pre><pre>navigate(“/resetpasswordsuccessful”);</pre><p>In the “routers” component, I imported the ResetPassword.js and Forgot Password pages and their Success and Error components and set the routes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*52gu4TCVvTgVnQ3EohMLOw.png" /><figcaption>Nesting the routes in the routers component</figcaption></figure><h3>Task 4— Implement layout and functionality for adding an item</h3><h4>Task 4A— Implement layout for adding an item</h4><p>With the the help of tailwind css and antDesign, I was able to create the layout for users to add an item to the their listings. This layout consists of multiple inputs that comprises of the images, item name, item description, color, category, condition, user location and shipping options. It also uses two CTAs, one to cancel listing and the other to add item.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39wOS4pqNrumbHgPAn690w.png" /><figcaption>Add item layout 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQUwSyzyT4Zw4Alj6H53rw.png" /><figcaption>Add item layout 2</figcaption></figure><h4>Task 4B — Add functionality from BE to the page for adding an item</h4><p>Using the given endpoints provided by the backend team, I was able to integrate the layout with the backend using axios to instigate a post request. This request included the values for all the inputs on the add item page therefore creating an object with key-value pairs which was sent to the server. These values can then be retrieved or updated at any giving time, if initialized with a get/patch request.</p><p>I hope this helps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d9a2784cf8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>