<?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 chawfronaut on Medium]]></title>
        <description><![CDATA[Stories by chawfronaut on Medium]]></description>
        <link>https://medium.com/@afrononymous?source=rss-aab12c61d56c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sYLyoHbyTQrcj1PPnfy7lw.png</url>
            <title>Stories by chawfronaut on Medium</title>
            <link>https://medium.com/@afrononymous?source=rss-aab12c61d56c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:18:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@afrononymous/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[Make scrolling on your React app fun using react-scroll]]></title>
            <link>https://medium.com/@afrononymous/make-scrolling-on-your-react-app-fun-using-react-scroll-9436235155a0?source=rss-aab12c61d56c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9436235155a0</guid>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[react-scroll]]></category>
            <dc:creator><![CDATA[chawfronaut]]></dc:creator>
            <pubDate>Wed, 20 Apr 2022 22:15:40 GMT</pubDate>
            <atom:updated>2022-04-20T22:15:40.309Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*i6VB5RdO8_b9K-vYNoAmew.gif" /></figure><p>ReactJS is a framework I loved at first glance and seem to fall the more I learn about it. One of the reasons I got hooked was because of how many packages it has and how they just seem to make coding a lot easier. There could possibly be a package for almost everything.</p><p>Last week as I was working on my <a href="https://chaws-portfolio.netlify.app/">portfolio’s</a> user experience, I noticed I didn’t quite enjoy how the pages scrolled once you clicked a link that led to a particular section of that page. I know one would suggest using the <a href="https://css-tricks.com/snippets/jquery/smooth-scrolling/">CSS scroll-behaviour feature</a>, but what fun is coding with React if you can’t use its almost endless packages. After a little searching, I stumbled upon something called React-scroll.</p><p>So what is React-scroll? Just as the name states it is a react package that deals with page scrolling. It is very easy to set up and equally as easy to use. You can use this package to custom your page scrolling animations. In this particular article, I will show you how I used it to add basic smooth scroll animation to my portfolio.</p><p><strong>Step 1:</strong> Once you have your React app ready, install react-scroll by running:</p><blockquote>npm install react-scroll</blockquote><p><strong>Step 2:</strong> Import the component you wish to use from react-scroll.</p><p>React-scroll has a number of components you could use depending on where you want to implement the scrolling feature. Some include <em>Link</em>, <em>Button</em>, <em>Elements</em> and <em>Events</em> to mention a few. For this particular example, we will use <em>Link</em>. So go ahead and import it like this in the particular file you wish to implement it:</p><blockquote>import { Link } from react-scroll;</blockquote><p>If you wish to import all or most components you could:</p><blockquote>import * from react-scroll;</blockquote><p><strong>Step 3: </strong>Use it on the links in the navigation bar or to replace some anchor tags.</p><p>By default links in a navbar are anchor tags <em>&lt;a&gt;, </em>like this:</p><blockquote>&lt;a href=”#about”&gt;About Page&lt;/a&gt;</blockquote><p>However, when using react-scroll you could change it to:</p><blockquote>&lt;Link to=”about” smooth duration={500}&gt;About Page&lt;/Link&gt;</blockquote><p>Basically:</p><ul><li>The <em>&lt;a&gt;</em> tag is switched with a <em>Link</em> tag.</li><li>The link of the <em>About Page</em> is placed in a <em>to</em> attribute and not an <em>href</em> attribute.</li><li><em>smooth</em> is an attribute for the animation, which enables smooth scrolling and by default is set to true.</li><li>You can set the duration of the animation using the <em>duration </em>attribute, in the above example it has been set to 500ms</li></ul><p>And that&#39;s how it’s done! You can save the changes and run <em>npm start </em>to see how it works.</p><p>There you have it, that&#39;s my brief explanation on how one can use react-scroll. It has many exciting attributes you can use to make your app scrolling better and more entertaining. You could visit this <a href="https://www.npmjs.com/package/react-scroll">link</a> to read its documentation and learn about what other features it has to offer!</p><p>Happy Coding! 👋🏾</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9436235155a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are 3 pieces of advice that you would give someone who’s just beginning their journey with…]]></title>
            <link>https://medium.com/@afrononymous/what-are-3-pieces-of-advice-that-you-would-give-someone-whos-just-beginning-their-journey-with-a5285f577040?source=rss-aab12c61d56c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5285f577040</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[chawfronaut]]></dc:creator>
            <pubDate>Thu, 04 Nov 2021 18:12:21 GMT</pubDate>
            <atom:updated>2021-11-04T18:12:21.573Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>What are 3 pieces of advice that you would give someone who’s just beginning their journey with software development today?</strong></h3><p>Six months ago, I jumped headfirst into software development without clearly understanding what I was getting into. The first month was a mess, to say the least. If I could think of three things off the top of my head that would count as good advice at that time and even now, it would be:</p><ul><li>It only gets easier the more you practice, there is no shortcut.</li><li>Even the smallest piece of information in the documentation that doesn’t look important is important. It’s like building blocks, it all matters.</li><li>Baby steps, take one step at a time. Make sure you crawl then walk before you run. Running might lead you to miss little but vital details</li></ul><p>As I mentioned before, there are no shortcuts. Development is logic-based, certain things have to be done to get a certain result. For this reason, I believe you can only get better at it with practice, just like math or learning to play an instrument.</p><p>Have you ever tried to finish a puzzle with missing pieces? Not only does it look awkward once done, but it also takes a lot longer to construct. One thing I’ve learnt from my not so long time in programming is no information, no concept is too small. Somehow they all tie in and help build your app. I learnt this the hard way with JavaScript. When I would read through the documentation I would normally cruise through the concepts that seemed easy and irrelevant. However, later on, I found out I needed to understand those “easy” concepts to build projects. Just like building blocks, or puzzles, one at a time. And just like my last point suggests baby steps. Take one step at a time. Make sure you crawl then walk before you run. Running might lead you to miss little but vital details.</p><p>I will end this by saying, programming takes time. The number of languages you’ve covered doesn’t really amount to anything if you don’t understand any clearly. Quality over quantity. Take your time to understand concepts and build, build, build projects. Practice definitely makes perfect.</p><p>#webDev #newDev</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5285f577040" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>