Skip to content
SPA실무 경험

Optimizing SPA (Single Page Application) Page SEO with React Helmet

1 min readWorkMoved from my Tistory blogRead the Korean original

Recently, when I was building the Ocean Freight page that shows a list of Spot freight rates,

I used React Helmet to manage the page's meta tags (title, description, keywords), and I also paid attention to the page URL while developing it.

jsx
const SEO = ({ title, description, keywords }: HelmetProps) => {
  return (
    <Helmet>
      <title>{title}</title>
      {description && <meta name="description" content={description} />}
      {keywords && <meta name="keywords" content={keywords} />}
    </Helmet>
  );
};
jsx
<Route path="contents/oceanFreight/*" element={<OceanFreightList />} />

I can't show the detailed code, but after I deployed with the optimizations above, I could see a few days later that SEO had taken effect, even though the page was newly created.

Ocean freight from Korea to winilogis
Figure 1. Ocean freight from Korea to winilogis

I also did not put winiLogis in the alt attribute of the img tags, so I wondered how the images below are getting SEO. I think I need to look into SEO further.

Ocean freight from Korea to winilogis IMG
Figure 2. Ocean freight from Korea to winilogis IMG

Lastly, after I changed the meta tags on my blog and added tags to each post, its SEO seems to be getting optimized little by little.

SEO for the blog of frontend developer Sungjun Um
Figure 3. SEO for the blog of frontend developer Sungjun Um

Companies treat SEO optimization as a must, and many recent job postings also seem to look for people who have experience with SEO optimization.

So I want to keep researching SEO optimization and studying how to optimize efficiently.

  • #meta tag
  • #React Helmet
  • #SEO
  • #SEO optimization
  • #Frontend Developer
  • #Frontend Developer Sungjun Um

More in Work