<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Huy</title>
    <description>The latest articles on DEV Community by Huy (@huydhoang).</description>
    <link>https://dev.to/huydhoang</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F244521%2F9adb305d-35eb-4ea2-9f91-21d655559908.png</url>
      <title>DEV Community: Huy</title>
      <link>https://dev.to/huydhoang</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/huydhoang"/>
    <language>en</language>
    <item>
      <title>Next.js + MUI v5 with TypeScript support</title>
      <dc:creator>Huy</dc:creator>
      <pubDate>Mon, 22 Nov 2021 08:53:24 +0000</pubDate>
      <link>https://dev.to/huydhoang/nextjs-mui-v5-with-typescript-support-b51</link>
      <guid>https://dev.to/huydhoang/nextjs-mui-v5-with-typescript-support-b51</guid>
      <description>&lt;p&gt;Since MUI v5 (Material UI) was released, I've started a new project with it. But as it's a brand new version with breaking changes, I couldn't find an example project that I'm fully satisfied with.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mui-org/material-ui/tree/master/examples/nextjs-with-typescript"&gt;The one on the official MUI's Github repo&lt;/a&gt; featuring Next.js with TypeScript (my framework of choice) didn't follow &lt;a href="https://dev.to/vadorequest/a-2021-guide-about-structuring-your-next-js-project-in-a-flexible-and-efficient-way-472"&gt;standard Next.js folder structure&lt;/a&gt;, as of this writing.&lt;/p&gt;

&lt;p&gt;So I felt inclined to create one with the most basic features that I would use myself. The result is on my Github (link below).&lt;/p&gt;

&lt;p&gt;Here's a screenshot of the About page:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wBd3yzCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/et449xhczgb5cwjycdgy.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wBd3yzCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/et449xhczgb5cwjycdgy.PNG" alt="About Page" width="880" height="587"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It features a standard folder structure as generated by &lt;code&gt;create-next-app&lt;/code&gt; and the leanest usable ESLint + Prettier configs for linting/formatting.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/huydhoang/next-mui-emotion"&gt;View on Github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you like my work, please give it a star to let me know it's useful to you :)&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>mui</category>
      <category>typescript</category>
      <category>template</category>
    </item>
    <item>
      <title>Barebone Next.js TypeScript Template</title>
      <dc:creator>Huy</dc:creator>
      <pubDate>Thu, 01 Apr 2021 04:35:25 +0000</pubDate>
      <link>https://dev.to/huydhoang/next-js-typescript-template-fbh</link>
      <guid>https://dev.to/huydhoang/next-js-typescript-template-fbh</guid>
      <description>&lt;h1&gt;
  
  
  Next.js TypeScript Template with Auto Code Formatting in VSCode
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/huydhoang/next-typescript-template.git
&lt;span class="nb"&gt;cd &lt;/span&gt;next-typescript-template
pnpm dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://pnpm.js.org/"&gt;pnpm&lt;/a&gt; is a cool alternative to &lt;code&gt;yarn&lt;/code&gt; or &lt;code&gt;npm&lt;/code&gt; as it is faster and can reuse downloaded packages to reduce the size of &lt;code&gt;node_modules&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you use &lt;code&gt;yarn&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or &lt;code&gt;npm&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Auto Code Formatting
&lt;/h2&gt;

&lt;p&gt;Auto Code Formatting for TypeScript was setup using ESLint and Prettier in VSCode.&lt;br&gt;
Simply turn on &lt;code&gt;Editor: Format On Save&lt;/code&gt; feature within VSCode and let the magic happen.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;File &amp;gt; Preferences &amp;gt; Search 'Format On Save'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/huydhoang/next-typescript-template"&gt;https://github.com/huydhoang/next-typescript-template&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feel free to share and comment! :)&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>typescript</category>
      <category>prettier</category>
      <category>eslint</category>
    </item>
  </channel>
</rss>
