<?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 Bjorn-Donald Bassey on Medium]]></title>
        <description><![CDATA[Stories by Bjorn-Donald Bassey on Medium]]></description>
        <link>https://medium.com/@black-bjorn?source=rss-7a01ecfa9105------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ykMhGYoas8AUjQ9fnzpmMg.jpeg</url>
            <title>Stories by Bjorn-Donald Bassey on Medium</title>
            <link>https://medium.com/@black-bjorn?source=rss-7a01ecfa9105------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 18:42:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@black-bjorn/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[Bayes Statistics Part 1: Bayesian Models and Parameters]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/bayes-statistics-part-1-bayesian-models-and-parameters-c1cd4197a5f0?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/1672/1*j2aoa87b4CUoDyhgX0xQ-g.png" width="1672"></a></p><p class="medium-feed-snippet">A random variable is a mapping from the sample space of an experiment, S, to a set of real numbers.</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/bayes-statistics-part-1-bayesian-models-and-parameters-c1cd4197a5f0?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/bayes-statistics-part-1-bayesian-models-and-parameters-c1cd4197a5f0?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1cd4197a5f0</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[bayesian-statistics]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 18:50:27 GMT</pubDate>
            <atom:updated>2026-10-27T18:50:27.441Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding the Transformer: Breaking Down]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/understanding-the-transformer-breaking-down-a18e24df91b3?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/1672/1*z3sNUmpU7FyalzaiFWrWdA.png" width="1672"></a></p><p class="medium-feed-snippet">Attention Is All You Need, the influential paper that many believe started the LLM era of AI.</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/understanding-the-transformer-breaking-down-a18e24df91b3?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/understanding-the-transformer-breaking-down-a18e24df91b3?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/a18e24df91b3</guid>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 19:10:15 GMT</pubDate>
            <atom:updated>2026-10-26T19:10:15.353Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Understanding Attention]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/understanding-attention-5fb6db71f35f?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/1672/1*axoUKbf-UCXOszDkQCW2Wg.png" width="1672"></a></p><p class="medium-feed-snippet">The attention mechanism is an important component of almost all the AI models being used today.</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/understanding-attention-5fb6db71f35f?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/understanding-attention-5fb6db71f35f?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fb6db71f35f</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[attention]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 18:27:46 GMT</pubDate>
            <atom:updated>2026-10-26T18:27:46.360Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Git Info Every Developer Should Know (That Saves You in Real Life)]]></title>
            <link>https://black-bjorn.medium.com/git-info-every-developer-should-know-that-saves-you-in-real-life-dd1ac29c62c1?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd1ac29c62c1</guid>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Mon, 29 Dec 2025 19:04:21 GMT</pubDate>
            <atom:updated>2025-12-29T19:04:21.002Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uN5Li8YcCvF-T0VL4HyGTw.jpeg" /></figure><p>Git feels dangerous when you’re new to it. Commands like “delete branch”, “reset”, or “rebase” sound permanent. But Git is built around a comforting truth: most actions that look destructive are just moving references. The data often remains on your machine until Git decides to clean it up.</p><h4>1) Deleting a branch doesn’t delete your work (immediately)</h4><p>A branch is basically a pointer to a commit. When you delete a branch, you delete the pointer — not the commits themselves. Those commits may become unreachable, but they still exist until Git garbage collection eventually removes them.</p><h4>2) git reflog is your undo button</h4><p>If you ever “lost” commits after a reset or rebase, git reflog is how you get them back. It records where your HEAD and branch references have been locally.</p><pre>git reflog</pre><p>Once you find the commit hash you want:</p><pre>git checkout -b recovered &lt;hash&gt;</pre><h4>3) Cherry-pick lets you copy commits between branches</h4><p>Cherry-pick is great for grabbing a hotfix commit without merging everything.</p><pre>git cherry-pick &lt;commit-hash&gt;</pre><p>If conflicts happen:</p><pre>git cherry-pick --continue<br># or<br>git cherry-pick --abort</pre><h4>4) Workflows matter more than commands</h4><p>Git becomes easy when your team follows a simple workflow: keep main deployable, develop features in branches, and merge via pull requests. Whether you use trunk-based development or feature branches, consistency is what prevents chaos.</p><h4>5) You don’t need to clone the entire repo history</h4><p>If you only need the latest version of a branch, shallow clone saves time and disk:</p><pre>git clone --depth 1 --single-branch --branch develop &lt;repo-url&gt;</pre><h4>6) Git stores snapshots (and compresses aggressively)</h4><p>Git doesn’t simply store “diffs” per commit. Conceptually it stores snapshots of your project, then uses packfiles and delta compression internally to reduce size.</p><h4>7) Aliases turn Git into muscle memory</h4><pre>git config --global alias.st status<br>git config --global alias.co checkout<br>git config --global alias.lg &quot;log --oneline --graph --decorate --all&quot;</pre><p>At the end of the day, Git isn’t magic — it’s just snapshots, references, and a surprisingly forgiving safety net (as long as you know where to look). The more you understand what Git is <em>actually</em> doing under the hood, the more confident you become shipping changes, fixing mistakes, and collaborating with others.</p><p>If this helped you, feel free to connect and follow along with what I’m building:<br> <strong>Twitter/X:</strong> @6lackbjorn • <strong>GitHub:</strong> bjorndonald • <strong>Website:</strong> bjorncode.dev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd1ac29c62c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep dive into Git branches]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/deep-dive-into-git-branches-c891ee97be29?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/2600/1*MCn7Q_K0w_OSTcaNv_UzAg.png" width="4132"></a></p><p class="medium-feed-snippet">One of the vital features sought after by the Linux community when developing a distributed version control system was the ability for&#x2026;</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/deep-dive-into-git-branches-c891ee97be29?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/deep-dive-into-git-branches-c891ee97be29?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/c891ee97be29</guid>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Sat, 15 Nov 2025 07:02:22 GMT</pubDate>
            <atom:updated>2025-11-15T07:02:22.652Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Introduction to GIT and what happens under the hood.]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/introduction-to-git-and-what-happens-under-the-hood-a2db5631296b?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/1024/1*mADdAOo1yjkOjVrr00Go5w.png" width="1024"></a></p><p class="medium-feed-snippet">it is a distributed version control system for keeping track of every change made in a particular project&#xA0;. To create a new git repository&#x2026;</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/introduction-to-git-and-what-happens-under-the-hood-a2db5631296b?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/introduction-to-git-and-what-happens-under-the-hood-a2db5631296b?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2db5631296b</guid>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 07:16:56 GMT</pubDate>
            <atom:updated>2025-11-10T07:16:56.786Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Making pushing to git easier with AI]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://black-bjorn.medium.com/making-pushing-to-git-easier-with-ai-27c291554a2d?source=rss-7a01ecfa9105------2"><img src="https://cdn-images-1.medium.com/max/2600/1*gXvjY8M_wSjEAxc7UXZa_A.jpeg" width="6000"></a></p><p class="medium-feed-snippet">AI is touching every aspect of a people&#x2019;s lives right now. From coding to photo manipulation to to voice generation. It is impossible to&#x2026;</p><p class="medium-feed-link"><a href="https://black-bjorn.medium.com/making-pushing-to-git-easier-with-ai-27c291554a2d?source=rss-7a01ecfa9105------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://black-bjorn.medium.com/making-pushing-to-git-easier-with-ai-27c291554a2d?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/27c291554a2d</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[azure-devops]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 17:55:06 GMT</pubDate>
            <atom:updated>2025-09-24T17:55:06.053Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Always try to be part of something.]]></title>
            <link>https://black-bjorn.medium.com/always-try-to-be-part-of-something-ca9322826f53?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9322826f53</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hnginternship]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Tue, 17 Aug 2021 15:39:46 GMT</pubDate>
            <atom:updated>2021-08-17T15:39:46.334Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEclVgXdRDvrPHV8PL5wLg.jpeg" /></figure><p>This year has been so impactful and life-changing for me as this year feels like when my life truly got started. I have been a programmer for as long as I can remember but I was never part of the tech community. I never truly made an effort to seek it out and be a part of it because I honestly though that wasn’t needed. I’ve always been more of a loner and was what made sense to me at the time.</p><p>However, this year I had to truly go beyond my comfort zone and I was exposed to an absolutely massive and ever-changing world full of people involved and honestly interested in tech. A world I always had the ability to be a part of. The thing that spoke to me about the tech community was always how helpful and supportive the community was. It didn’t matter how good you were or if you were a complete beginner, everyone was made to feel welcome and valued.</p><p>Now, I have decided to be a more active member of my tech community and society as a whole. I am doing that through engaging more people on twitter, writing blogs on medium and working with others on public projects. Another way was joining the HNG internship in the frontend track.</p><p>As the year marches towards the last few months of the year, I believe that I have grown more than I have ever before personally and professionally. I feel like I am truly progressing at a rate that I am comfortable with. Right now, I am a frontend developer who has experience working with PHP, JavaScript, HTML/CSS, and C#. I have built projects with AngularJS, React, React Native, SCSS and PHP.</p><p>With the start of the HNG internship, I wish to improve my skills of collaboration and cooperation with others as well as my ability to teach and improve my foundation in programming. I would also love to meet and connect with more people and be exposed to other ideas and different points of view.</p><p>I would like to thank all the people responsible for making <a href="https://zuri.team/">HNG</a> internship a reality. To anyone interested in taking on a challenge and joining an awesome community, check <a href="https://training.zuri.team/">this</a> out.</p><p>Here are some useful materials which could help you on your way:</p><p>Follow this <a href="https://www.youtube.com/watch?v=Gu1so3pz4bA">link </a>for a beginners tutorial on the Figma tool that really helped me a lot. Every programmer needs to learn how to use git, use this<a href="https://www.youtube.com/watch?v=SWYqp7iY_Tc"> link</a> to learn how. To learn about HTML, the programming language, here is a <a href="https://www.youtube.com/watch?v=UB1O30fR-EE">link</a> and here is a <a href="https://www.youtube.com/watch?v=hdI2bqOjy3c">video</a> on JavaScript programming. And here is a video on React Native, for those that are interested in learning mobile development.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9322826f53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My custom ReactJS starter code complete with Redux and React-Router-Dom Part 1]]></title>
            <link>https://black-bjorn.medium.com/my-custom-reactjs-starter-code-complete-with-redux-and-react-router-dom-28708a0cadbf?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/28708a0cadbf</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[amateur]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Thu, 15 Jul 2021 10:47:37 GMT</pubDate>
            <atom:updated>2021-07-15T11:22:29.513Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XQNYR9qb4RtYNX5hrbUWqQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@olly?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Andrea Piacquadio</a> from <a href="https://www.pexels.com/photo/pensive-female-worker-choosing-folder-with-documents-in-modern-office-3791185/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>During the past few months, I have really been obsessed with taking the next step as a developer and have taken steps to ensure that my code is not only much more sophisticated but also more arranged and efficient. I had to do on my own due to my lack of a proper mentor and not working a proper programming institution.</p><h3><strong>What exactly is ReactJS?</strong></h3><p>Let’s have a introduction for React.</p><p>React is a JavaScript library created for building fast and interactive user interfaces for web and mobile applications. It is an open-source, component-based, front-end library responsible only for the application’s view layer. In Model View Controller (MVC) architecture, the view layer is responsible for how the app looks and feels. React was created by Jordan Walke, a software engineer at Facebook.</p><p>Let’s take a look at an Instagram webpage example, entirely built using React, to get a better understanding of how React works. As the illustration shows, React divides the UI into multiple components, which makes the code easier to debug. This way, each component has its property and function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y61y3Pj99dp-fn8thKgdLQ.png" /><figcaption>Twitter page separated into components</figcaption></figure><h3>BABEL AND WEBPACK</h3><p>React makes use of a <strong>HTML-like syntax that extends JVM(JavaScript Virtual Machine) </strong>so that HTML-like text can co-exist with JavaScript/React code. This syntax is called JSX. However, browsers don’t understand JSX and that’s where babel comes in.</p><p>Babel is a popular compiler that helps to convert JSX and any current version of JS code into a backwards compatible version of JavaScript in current and older browsers or environments.</p><p>Webpack, on the other hand, is a popular bundler which is built on top of the NodeJS system whose purpose is to bundle all the required JS, CSS, image and other files into a format that will be easily understood by the browser. It is all capable, with the help of certain modules, compression of JS and CSS files to make the site load faster. We will discuss more on how we can do this later on.</p><h3>HOW TO CREATE A NEW REACT PROJECT</h3><p>ReactJS was built on top the NodeJS framework, and we can use the npm command to install react and react-dom and basically build a react project from scratch. However, that is not what we will do. We will make use of one the pre built starter project that react provides for us to get started.</p><p>In order to get this starter code, first, we must install the create-react-app module globally on our computer. That can be done by running this command:</p><pre>npm install -g create-react-app</pre><p>Alternatively, if you’re big on using <a href="https://yarnpkg.com/">Yarn</a>, you can use Yarn to install create-react-app globally instead!</p><pre>yarn global add create-react-app</pre><p>We’ll verify that our install of create-react-app is working with:</p><pre>$ create-react-app — version<br>create-react-app version: 1.4.3</pre><p>This should take about a minute, if your internet is decent. After that is done, you can now create a new project using the create-react-app module now. Now, run this command.</p><pre>npx create-react-app &lt;app-name&gt;</pre><p>This may take some time to complete but when it is done you should see a new folder bearing the name of the app created in the present directory. If you open the folder you should see a directory like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*lpAcD0vK51-52BX3K1jSGg.png" /></figure><p>Now navigate into the folder on the command line interface and run this command:</p><pre>npm run start</pre><p>And a page should open in your default browser, it will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7PoglSWAEyMm3dfX3Dzi9w.png" /></figure><h3>SETTING UP OUR PROJECT</h3><p>Now, we have successfully created a new React project <a href="https://emojipedia.org/raising-hands/">🙌</a>. But, we don’t need to stop there. We can organize our project better and this will allow us to work more efficiently and help our code be more legible especially when working as a group.</p><p>We want to categorize all our files into folders which will allow them to be easily found and used. For example, images should be placed in their folder and in a subdirectory which represents the nature of certain images. However, I suggest that the subdirectories should be made based on the website’s pages and there should be a general folder where images that are used in numerous pages e.g website logo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*Gw0IcOJ2249iKgpUf5DXVw.png" /></figure><p>So therefore, in a normal web page we will need the following: <br>- Styles (CSS or SCSS files) which will include general styles which will be used by all pages<br>- Graphics (SVG or flash graphics) which will be separated in to subdirectories based on the pages that they are being used and the ones used generally.<br>- Utilities (JS files) — these will include JavaScript files which can be referenced all through the project.<br>- Store (Redux) These will include the reducers for the state for this site and the actions which will be used to interact with it.</p><p>Now, when all the folders have been created your directory should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*IoP-QdYiIwfqWrXAG26kzA.png" /></figure><h3>PRESENTATIONAL COMPONENTS AND CONTAINER COMPONENTS</h3><p>So there is this pattern that formed in the react community which is used to organize react files. Bear in mind, it seems to be losing popularity due to the introduction of React Hooks. However, I believe they are still useful when organizing React code for when I am working with others. So, let’s get into the concept.</p><p>The general concept is to separate React components into two categories:<br>- Presentational Components(Component folder)<br>- Container Components(Container folder)</p><p>Presentational Components:</p><ul><li>Are concerned with <em>how things look</em>.</li><li>Often allow containment via <em>this.props.children</em>.</li><li>Have no dependencies on the rest of the app, such as Flux actions or stores.</li><li>Don’t specify how the data is loaded or mutated.</li><li>Do not manipulate data in any</li><li>Receive data and callbacks exclusively via props.</li><li>Rarely have their own state (when they do, it’s UI state rather than data).</li><li>Are written as functional components unless they need state, lifecycle hooks, or performance optimizations.</li><li>Examples: <em>Page, Sidebar, Story, UserInfo, List.</em></li></ul><p>Container Components:</p><ul><li>Are concerned with <em>how things work</em>.</li><li>May contain both presentational and container components** inside but usually don’t have any DOM markup of their own except for some wrapping divs, and never have any styles.</li><li>Provide the data and behavior to presentational or other container components.</li><li>Provide callbacks to the presentational components.</li><li>Are often have states, as they tend to serve as data sources.</li><li>Are usually generated using <a href="https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750">higher order components</a> such as <em>connect()</em> from React Redux, <em>createContainer() </em>from Relay, or <em>Container.create() </em>from Flux Utils, rather than written by hand.</li><li>Examples: <em>UserPage, FollowersSidebar, StoryContainer, FollowedUserList.</em></li></ul><h3>HOW THE PATTERN WORKS</h3><p>We will create a new folder in the /src directory of our project called containers. This folder will different subdirectories which will be based on the pages of the website. For example, for the home page the subdirectory would be named “home”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*ILxq5FwYWmpHR5BvKwge9A.png" /></figure><p>In this folder, create a JavaScript file called Home.js and a react component will be inputted into it as follows:</p><pre>import React, { Component } from ‘react’</pre><pre>export class Home extends Component {</pre><pre>render() {</pre><pre>  return (</pre><pre>     &lt;div&gt;</pre><pre>     &lt;/div&gt;</pre><pre>    )</pre><pre>  }</pre><pre>}</pre><pre>export default Home;</pre><p>In this component, initialize an state in its constructor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*q7BSqDwtOZPGaI25Wj0gaA.png" /></figure><p>Now we need to create the directory that will hold the presentational components. Firstly, create a new folder in the src directory called “components” and within it a subdirectory called “home” as such.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/1*GWETIaEeKQtUYuNE2l1NTg.png" /></figure><p>As I’m sure you have noticed, the subdirectories within the components folder will be based on the pages of the website. In the that folder, create a new file called Content.js. Within this file, we will put a functional component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/247/1*8_3oZrd8iKtpaxoJGwfjSg.png" /></figure><p>Now import the Content component into Home.js and render it like so:</p><pre>import React, { Component } from ‘react’</pre><pre>import Content from ‘../../components/home/Content’</pre><pre>export class Home extends Component {</pre><pre>  constructor (props) {</pre><pre>    super(props)</pre><pre>      this.state = {</pre><pre>        title: ‘New Page’</pre><pre>      }</pre><pre>  }</pre><pre>  render () {</pre><pre>    return &lt;Content title={this.state.title} /&gt;</pre><pre>  }</pre><pre>}</pre><pre>export default Home;</pre><p>Now import your Home.js into the App.js file in the src directory and render it like so:</p><pre>import logo from ‘./logo.svg’</pre><pre>import ‘./App.css’</pre><pre>import Home from ‘./containers/home/Home’</pre><pre>function App () {</pre><pre>  return &lt;Home /&gt;</pre><pre>}</pre><pre>export default App;</pre><p>The page in your browser should show the text you placed in the initial state in the home container like so:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w1dg1XOH0d2-9oXksljPTg.png" /></figure><p>At the end of all that, your directory should look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*Id40b6Abv7dScyIeM2TeGw.png" /></figure><p>This will be part 1 of a series because this is getting a bit long. The next one will feature react-router and redux.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28708a0cadbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How VsCode’s intellisense caused me errors]]></title>
            <link>https://black-bjorn.medium.com/how-vscodes-intellisense-caused-me-errors-c941bea70ea2?source=rss-7a01ecfa9105------2</link>
            <guid isPermaLink="false">https://medium.com/p/c941bea70ea2</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Bjorn-Donald Bassey]]></dc:creator>
            <pubDate>Fri, 19 Feb 2021 08:10:00 GMT</pubDate>
            <atom:updated>2021-02-19T08:10:00.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pOyzJ7yr3TAVc-vbB-4L6w.jpeg" /></figure><p>The Visual Studio Code is easily one of the best IDE’s out there for programmers to carry out some programming due to its wide array of features and lightweight nature. One of such features is the intellisense which is sort a background program which acts as an assistant to the user.</p><p>It is what keeps track of all terms entered into the code and offers you options any time you writing code. Well, intellisense is not exclusive to this particular IDE as most IDEs have intellisense or something of the sort. However, it seems VsCode differs from others because it can edit your code without notifying you of the change. I’m not sure this is a fault or a feature but it led to some issues with my react project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8irBJdlHG1DAkj0DDmC9Q.png" /></figure><p>A few days ago, I woke up to this fine message “<a href="https://stackoverflow.com/questions/57536816/react-typeerror-cannot-read-property-prototype-of-undefined">React: TypeError: Cannot read property ‘prototype’ of undefined</a>” from my React project when I ran the app. The stressful thing about it is that it can out of nowhere and when that happens it means you have nowhere to look. After exhausting all options I turned to google i.e. StackOverflow and we came across this page <a href="https://stackoverflow.com/questions/57536816/react-typeerror-cannot-read-property-prototype-of-undefined">https://stackoverflow.com/questions/57536816/react-typeerror-cannot-read-property-prototype-of-undefined</a> in which it is explained some code may have incorrectly added by intellisense.</p><p>It could take different forms like the code in the answer by <a href="https://stackoverflow.com/users/12762577/karthick">karthick</a>. For me, the code was as follows:</p><pre>import { request } from &quot;express&quot;;</pre><p>I can’t say with honesty what caused the error. However, I was working with the firebase module. Hopefully that can shed some light. You may never have to experience this but if you do, I hope is article is of some help to you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c941bea70ea2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>