Home Projects Portfolio Dashboard Export PDF Log in
React JavaScript

Enhancing Personal Branding: Building a React Social Component

Every developer portfolio serves as a living resume. Recently, while working on my personal portfolio project, I realized that my introductory section was missing a critical piece of the puzzle: a direct, accessible way for visitors to connect with my professional profiles.

The Situation

My portfolio "Intro" section was clean and minimalist, but it felt static. It introduced who I am and what I do, but it didn't bridge the gap to my presence on platforms like GitHub, LinkedIn, or other professional networks. I needed a way to display these social links that felt native to the React-based architecture of the site.

The Implementation

I decided to abstract these links into a reusable Social component. In a React environment, this approach offers several benefits:

  1. Maintainability: If I need to update a profile URL or add a new network, I change it in one component instead of hunting through JSX files.
  2. Consistency: By centralizing the styling of these icons, I ensure a uniform look across the entire application.
  3. Declarative UI: The parent component remains clean, simply declaring that it needs social links without worrying about the implementation details.

Here is a simplified example of how I structured the component:

const SocialLinks = () => {
  const profiles = [
    { name: 'GitHub', url: 'https://github.com/example' },
    { name: 'LinkedIn', url: 'https://linkedin.com/in/example' }
  ];

  return (
    <nav className="social-nav">
      {profiles.map(p => (
        <a key={p.name} href={p.url} target="_blank" rel="noreferrer">
          {p.name}
        </a>
      ))}
    </nav>
  );
};

The Outcome

By integrating this component into the main Intro section, the portfolio now provides immediate social context. The code is modular, and the user experience is improved with just a few lines of focused React logic.

The Takeaway

When building personal projects, don't overlook the utility of small, reusable components. If you find yourself manually adding links or repetitive UI elements in your site header or intro, abstract them into a functional component immediately. It keeps your codebase tidy and makes future updates significantly faster.


Generated with Gitvlg.com

Enhancing Personal Branding: Building a React Social Component
Tony Blondeau NYA

Tony Blondeau NYA

Author

Share: