<?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 Samson Ocran on Medium]]></title>
        <description><![CDATA[Stories by Samson Ocran on Medium]]></description>
        <link>https://medium.com/@samson.ocran?source=rss-3ab81d0ac7ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NLA0MUL08HvDISbw.jpg</url>
            <title>Stories by Samson Ocran on Medium</title>
            <link>https://medium.com/@samson.ocran?source=rss-3ab81d0ac7ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:09:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samson.ocran/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[Self Building]]></title>
            <link>https://medium.com/@samson.ocran/self-building-4fe9001dd101?source=rss-3ab81d0ac7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fe9001dd101</guid>
            <dc:creator><![CDATA[Samson Ocran]]></dc:creator>
            <pubDate>Sat, 15 Jul 2023 00:18:24 GMT</pubDate>
            <atom:updated>2023-07-15T00:18:24.592Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey! It Samson Ocran again,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pZV8zkprYhmyw_QGegPnDQ.jpeg" /></figure><p><strong>I have a little contribution to this topic(Building up one&#39;s self)</strong></p><ol><li>Having a clear learning path</li><li>Having accountability to create strong learning habits</li><li>Having a community to share the learning journey</li></ol><p>The number of different technologies, programming languages, and libraries out there can be overwhelming. You don’t need to learn about all of them. In fact, going deep is much better than going broad. What matters is that you choose something and stick to it. You need time focused on a single thing to go deep. Being good at what you know brings opportunities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*Yarfh07BB1VyjZdZfv_yaQ.jpeg" /></figure><p>Well, this week, I would like us to move from the VISION to ACTION. Moving from vision to action requires a plan. Write down a specific goal you&#39;d like to achieve this month. It could be in your learning journey your career, business, health, finance, relationships, or family. Once you write it (them) down, <strong>START working towards your goal(s) today !</strong></p><p>Be open to the Tech-space, ask questions when u need help, and find a mentor so that you won&#39;t stay on a debug code for long. And stay committed finally.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fe9001dd101" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using React Context]]></title>
            <link>https://medium.com/@samson.ocran/using-react-context-f6fea4bb036f?source=rss-3ab81d0ac7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6fea4bb036f</guid>
            <dc:creator><![CDATA[Samson Ocran]]></dc:creator>
            <pubDate>Fri, 14 Jul 2023 23:43:54 GMT</pubDate>
            <atom:updated>2023-07-14T23:43:54.477Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi !!! It’s Samson, It&#39;s been a while but here I come again you are about to hear how useContext is very important in react-js.😉</p><p>I promise it won’t be a very long article but short and beautiful.</p><p>|<em> First what is useContext ?</em></p><p><em>What are they used for?</em></p><p><em>In what scenario can we use context</em></p><p>Well, let’s dive right in 😊</p><p><strong>What is useContest</strong>?</p><p>The useContext is a react Hook that provides function components access to the context value for a context object. It: Takes the context object (i.e., the value returned from React. createContext 🤨) as the one argument it accepts. And returns the current context value as given by the nearest context provider of an object, okay more digging to do…</p><p>‘Context is a React feature for sharing state between several parent and child components with the help of a provider.</p><p>useContext is a hook that lets you easily “hook into” context, thereby accessing shared state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0vcz5zMEOhQV768CsV-p4A.png" /></figure><p><strong>What are they used for</strong></p><p>As said earlier, the useContext hook lets users easily share data across each page without fetching the data with either Axios, etc again.</p><p>The useContext hook makes it easy for users when it comes to using API fetch and data transfer</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlvcREhvMCoEQOhENw7hDQ.png" /></figure><p><strong>In what scenario can we use context</strong></p><p>For example when we are having an API that needs to be shear more than one component in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qCmK1hKWQrVvtEE7KsuIjw.png" /></figure><p>This is my idea on the useContext hook.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6fea4bb036f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My GitHub API Applicatin — AltSchool Exams]]></title>
            <link>https://medium.com/@samson.ocran/github-api-altschool-second-semester-exams-74612148c495?source=rss-3ab81d0ac7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/74612148c495</guid>
            <dc:creator><![CDATA[Samson Ocran]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 09:12:55 GMT</pubDate>
            <atom:updated>2023-03-24T22:26:31.526Z</atom:updated>
            <content:encoded><![CDATA[<h4>GitHub Api is a simple web app that describes my GitHub profiles and repository details. This is a project for my second-semester exams at AltSchool Africa and I want to share with my readers what I made, how I did it, and the special features I included in the little app.<br>The app is created using a React ( JavaScript library) and in this article, I’m assuming that my readers are already familiar with setting up a react project using create-react-app.</h4><h3>Content</h3><ul><li>About the App</li><li>Setting up React Router</li><li>Creating the Landing page</li><li>Creating the Repository’ page</li><li>Creating a 404 page</li><li>Setting up use context</li><li>Setting up react pagination</li></ul><h3>About the App</h3><p>GitHub API is a simple user-friendly app that originally shows my personal GitHub portfolio; name, image, and username list of my repositories and its details, which was later expanded and improved upon. It showcases my GitHub portfolio. It provides easy navigation and a welcoming user interface. <a href="https://gighub-api.netlify.app/">Check it out here</a><br><strong>NB:</strong> GitHub App content is read-only.</p><h3>Setting up React Router</h3><p>React Router is a popular and powerful routing library for React applications. It enables the navigation among views of various components in a React Application, allows changing the browser URL, and keeps the UI in sync with the URL.<br>To get started I installed React Router into my React app by opening the terminal in my app’s directory and input:</p><pre>`yarn add react-router-dom`</pre><pre>After installation, I went into the top level component of my app and made all necessary imports, like so;</pre><p>import { BrowserRouter as Router, Routes, Route } from &quot;react-router-dom&quot;</p><p>It is common practice to just import &lt;BrowserRouter&gt; as &lt;Router&gt;, I guess BrowserRouter is just too long to type!</p><p>Then I proceeded to set up my basic routing with the outermost component being the &lt;Router&gt;, wrapping the &lt;Routes&gt; the component which then wraps the &lt;Route&gt; component.<br>The &lt;Route&gt; the component takes in two parameters; the path of the route and the element component to be rendered in that route.</p><p>Also, the Landing route which is the master wrapper over all the routes that the user can navigate through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*oh9fRplHW7tgxIog.png" /></figure><h3>Creating the Landing page</h3><p>The landing page is also known as the home page. In this app, the home page starts the landing route. When a user starts the app, it simply takes the user to the home page before navigating to another page.</p><h3>Creating the Repository page</h3><p>The repo page only renders my GitHub repositories by clicking on the getrepo button or Repositories @the nav bar.</p><h3>Creating a 404 page</h3><p>A 404 page is a landing page that tells your site viewers the requested page is unavailable or, in some cases, doesn’t exist. Basically, if a user tries to visit a page that cannot be found, they’ll be sent to your 404 page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EYXKn18xbqPQnhSt9uxX9Q.png" /></figure><h3>Setting up useContext</h3><p>The useContext hook was added to this app because the GitHub API call is been used on the home page which displays the user name image and etc. And it also provides its value to the repo page for the user repositories. This makes the useContext more important in this application.</p><h3>Setting up React Pagination</h3><p>Pagination in web development is where a user can use links such as “next”, “previous”, and page numbers to navigate between chapters of items that display one page of results at a time.<br>To know the limit of the numbers that will be dynamically displayed according to the length of users’ repositories, I implemented a logic using the total repositories and the number I wished to render per page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74612148c495" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HNG INTERNSHIP]]></title>
            <link>https://medium.com/@samson.ocran/hng-internship-c653d147f9ec?source=rss-3ab81d0ac7ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c653d147f9ec</guid>
            <dc:creator><![CDATA[Samson Ocran]]></dc:creator>
            <pubDate>Mon, 16 Aug 2021 07:46:15 GMT</pubDate>
            <atom:updated>2021-08-16T07:46:15.782Z</atom:updated>
            <content:encoded><![CDATA[<p>Am here to improve my skills in coding and also to achieve a better aim in web development: <a href="https://internship.zuri.team/">https://internship.zuri.team</a></p><p>Figma: <a href="https://youtu.be/4W4LvJnNegA">https://youtu.be/4W4LvJnNegA</a></p><p>GIT: <a href="https://youtu.be/USjZcfj8yxE">https://youtu.be/USjZcfj8yxE</a></p><p>HTML: <a href="https://youtu.be/-USAeFpVf_A?list=PLr6-GrHUlVf_ZNmuQSXdS197Oyr1L9sPB">https://youtu.be/qz0aGYrrlh</a></p><p>Python: <a href="https://youtu.be/dShKRmG3reg">https://youtu.be/dShKRmG3reg</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c653d147f9ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>