{"data":{"site":{"siteMetadata":{"title":"Arun Elanthamil","subtitle":"Software developer(MERN), excited about new tech, interested in finding the roots, CLI > GUI, Books >> PDFs.","copyright":"© All rights reserved.","author":{"name":"Arun Elanthamil","twitter":"et_arun","github":"Et-008"},"disqusShortname":"","url":"https://et-008.in"}},"markdownRemark":{"id":"9f2f1de7-e56a-5c0f-ac49-d168c2af26af","html":"<p>I’m sure I’ll write a lot more interesting things in the future.</p>\n<p>Okay so what is gatsby? it’s a <a href=\"https://www.wsfcs.k12.nc.us/cms/lib/NC01001395/Centricity/Domain/7935/Gatsby_PDF_FullText.pdf\">1925 novel</a> by American writer F. Scott Fitzgerald?<br>\nBut <a href=\"https://www.mparticle.com/blog/what-is-gatsby\">this awesome post</a> here says otherwise.</p>\n<blockquote>\n<p>Gatsby is a React-based open-source framework for creating websites and apps.\nIt’s great whether you’re building a portfolio site or blog, or a high-traffic e-commerce store or company homepage.</p>\n</blockquote>\n<p>\n  <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-1dad1.webp\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n  \n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block;  max-width: 960px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 56.09756097560976%; position: relative; bottom: 0; left: 0; background-image: url('data:image/webp;base64,UklGRlwAAABXRUJQVlA4IFAAAAAQAwCdASoUAAsAPm0skUWkIqGYBABABsSzgAAtJ4uDAAAA/vxHbeT3vvL4vB3Hfrkgbh+B7nxGHoDY9rCvZp1uzxQsanmU+7SSD19W+T2AAA=='); background-size: cover; display: block;\"\n    >\n      <img\n        class=\"gatsby-resp-image-image\"\n        style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n        alt=\"Gatsby\"\n        title=\"\"\n        src=\"/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-523ee.webp\"\n        srcset=\"/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-8326b.webp 240w,\n/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-ae337.webp 480w,\n/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-523ee.webp 960w,\n/static/what-is-gatsby-1db647b879f7c018e5e50efced2b5e4e-1dad1.webp 1230w\"\n        sizes=\"(max-width: 960px) 100vw, 960px\"\n      />\n    </span>\n  </span>\n  \n  </a>\n    </p>\n<h2>I use gatsby at work and i love it</h2>\n<div class=\"gatsby-highlight\" data-language=\"js\"><pre class=\"language-js\"><code class=\"language-js\"><span class=\"token keyword\">import</span> <span class=\"token punctuation\">{</span> StaticQuery<span class=\"token punctuation\">,</span> graphql<span class=\"token punctuation\">,</span> Link <span class=\"token punctuation\">}</span> <span class=\"token keyword\">from</span> <span class=\"token string\">'gatsby'</span></code></pre></div>\n<blockquote>\n<p>Why did we choose gatsby, when going with Wordpress is so much simpler?</p>\n</blockquote>\n<div class=\"gatsby-highlight\" data-language=\"markdown\"><pre class=\"language-markdown\"><code class=\"language-markdown\"><span class=\"token list punctuation\">1.</span> Needed a website and needed it real quick.\n<span class=\"token list punctuation\">2.</span> It should be unique and theme matching to our company's brand.\n<span class=\"token list punctuation\">3.</span> Developer friendly and performant out of the box.</code></pre></div>\n<p>Three important points when you decide which way to go, especially when you like to build a brand from the ground up.</p>\n<p>Needless to say the abundance of support from the community, as react is the #1 favorite frontend framework that developers all around the world love.</p>\n<h2>Is it really Blazing fast?</h2>\n<p>As mentioned in their official site, <strong>“is it really that fast? 🤔“.</strong></p>\n<p>I had the doubt, but i had to make sure myself and the results were amazing.</p>\n<p>Normally server-side-rendered sites are a little bit faster than conventional sites, but <strong>statically generated sites</strong> are even faster.</p>\n<p>All pages, templates and components are built, split and mapped during <strong>Build</strong> time, which i will be explaining later.</p>\n<div class=\"gatsby-highlight\" data-language=\"markdown\"><pre class=\"language-markdown\"><code class=\"language-markdown\"><span class=\"token list punctuation\">-</span> Gatsby provides a <span class=\"token bold\"><span class=\"token punctuation\">**</span>Link<span class=\"token punctuation\">**</span></span> component, which you use on internal links.\n  It is optimized in a way to make route change look like magic.\n\n<span class=\"token list punctuation\">-</span> It prefetches the linked page content on hover, no loading...\n  <span class=\"token bold\"><span class=\"token punctuation\">**</span>out of the box support<span class=\"token punctuation\">**</span></span> just like that no configuration needed.</code></pre></div>\n<hr>\n<p>Event though these pages are seperate, once the homepage is loaded, react takes over and makes the static pages into a single app and makes it look flawless and smooth like a web app.</p>\n<p>It’s a little bit of this, little bit of that. Everything is starting to make sense now…</p>\n<p>But still what all can we do with this framework?</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">                                       to be continued...</code></pre></div>","fields":{"tagSlugs":["/tags/react/","/tags/learning-to-write/"],"slug":"/posts/new-to-gatsby/"},"frontmatter":{"title":"Gatsby - the go to SSG?","tags":["React","Learning to write"],"date":"2022-03-08T22:12:03.284Z","description":"Not sure what gatsby does or how it does it? join the club. I've been trying my best to learn the same thing for some time now, i've written what i know..."}}},"pageContext":{"slug":"/posts/new-to-gatsby/"}}