<?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: 猫头猫</title>
    <description>The latest articles on DEV Community by 猫头猫 (@maotoumao).</description>
    <link>https://dev.to/maotoumao</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%2F1199713%2Fda7a6009-58ae-4542-9af2-7a7d08d84bd1.jpeg</url>
      <title>DEV Community: 猫头猫</title>
      <link>https://dev.to/maotoumao</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maotoumao"/>
    <language>en</language>
    <item>
      <title>Vanilla Design: The Best React UI Library Ever</title>
      <dc:creator>猫头猫</dc:creator>
      <pubDate>Thu, 02 Nov 2023 04:24:26 +0000</pubDate>
      <link>https://dev.to/maotoumao/vanilla-design-the-best-react-ui-library-ever-3ncm</link>
      <guid>https://dev.to/maotoumao/vanilla-design-the-best-react-ui-library-ever-3ncm</guid>
      <description>&lt;h2&gt;
  
  
  ✨ Introduction
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Vanilla Design&lt;/code&gt; is a super lightweight, ultra high-performance React UI library. &lt;a href="https://github.com/maotoumao"&gt;Vanilla Design Team&lt;/a&gt;  places a great emphasis on code size and performance, drawing inspiration from the &lt;a href="https://github.com/kelseyhightower/nocode"&gt;nocode&lt;/a&gt; philosophy, which has significantly boosted the security and maintainability of &lt;code&gt;Vanilla Design&lt;/code&gt;. It's like they've added an extra layer of bulletproofing and polish to their creation! &lt;/p&gt;

&lt;h2&gt;
  
  
  📦 Install
&lt;/h2&gt;

&lt;p&gt;You only need to execute the following command to use &lt;code&gt;Vanilla Design&lt;/code&gt; in your React application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;vanilla-design
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;&lt;code&gt;Vanilla Design&lt;/code&gt; is committed to offering developers a superior development experience. You can integrate &lt;code&gt;Vanilla Design&lt;/code&gt; with minimal effort and cost.&lt;/p&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;First, we need to import &lt;code&gt;Vanilla Design&lt;/code&gt;'s styles at the outermost layer of the application:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design/styles.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, you can joyfully make use of all the components provided by Vanilla Design:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;div&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design/styles.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Awesome Vanilla Design!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What? You think this isn't "React" enough? No worries, we've got your developer habits covered. &lt;code&gt;Vanilla Design&lt;/code&gt; offers an alternative way to import components:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Div&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design/styles.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;


&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Awesome Vanilla Design!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Wow, now that's super &lt;code&gt;React&lt;/code&gt;!&lt;/p&gt;

&lt;h3&gt;
  
  
  Import on Demand
&lt;/h3&gt;

&lt;p&gt;As a high-performance component library, on-demand loading is an absolute must. Unlike other UI libraries, &lt;code&gt;Vanilla Design&lt;/code&gt; has taken on-demand loading to the extreme:&lt;/p&gt;

&lt;h4&gt;
  
  
  CSS On-demand Importing
&lt;/h4&gt;

&lt;p&gt;If your boss doesn't care about how much code you've written, you can completely skip importing styles:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Div&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vanilla-design&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;// import "vanilla-design/styles.css"; Simply comment out that line!&lt;/span&gt;


&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Awesome Vanilla Design!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Component On-demand Importing
&lt;/h4&gt;

&lt;p&gt;Similarly, if you go all lowercase with &lt;code&gt;Vanilla Design&lt;/code&gt;, you don't even need to import anything. Your code can be simplified to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="c1"&gt;// import { Div } from "vanilla-design"; Simply comment out that line!&lt;/span&gt;

&lt;span class="c1"&gt;// import "vanilla-design/styles.css"; Simply comment out that line!&lt;/span&gt;


&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;(){&lt;/span&gt;

  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Awesome Vanilla Design!&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;div&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Isn't that pretty cool, right?&lt;/p&gt;

&lt;h2&gt;
  
  
  ❤️ Who's Using?
&lt;/h2&gt;

&lt;p&gt;Even though most companies don't openly declare it, they're secretly sipping from the &lt;code&gt;Vanilla Design&lt;/code&gt; well or crafting their own customized component libraries based on it. 😉：&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Facebook  Google  YouTube  Yahoo  Wikipedia  Windows  Twitter  Amazon  LinkedIn  MSN
eBay  Microsoft  Apple  Pinterest  PayPal  Reddit  Netflix  Stack Overflow ...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These companies typically pair &lt;code&gt;Vanilla Design&lt;/code&gt; with &lt;a href="http://vanilla-js.com/"&gt;Vanilla JS&lt;/a&gt;, significantly boosting development efficiency. It's like a perfect harmony of flavors for web development! 🍦🚀&lt;/p&gt;

&lt;h2&gt;
  
  
  🕛 When to use it?
&lt;/h2&gt;

&lt;p&gt;In many scenarios, using &lt;code&gt;Vanilla Design&lt;/code&gt; is a fantastic choice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;💡 When your bullheaded boss insists on using a UI library.&lt;/li&gt;
&lt;li&gt;💡 When your boss is code-blind and only cares about how much spaghetti code you've cooked up.&lt;/li&gt;
&lt;li&gt;💡 When your colleagues are in a never-ending battle over which UI library is the best and declare the rest as garbage.&lt;/li&gt;
&lt;li&gt;💡 When you see someone reinventing the wheel by creating yet another component library with nothing new.&lt;/li&gt;
&lt;li&gt;💡 And the list goes on...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can also find more information about &lt;code&gt;Vanilla Design&lt;/code&gt; right &lt;a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element"&gt;here&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/maotoumao/vanilla-design"&gt;repository&lt;/a&gt; is open source based on the WTFPL protocol. Don't hesitate to use it in your next project!&lt;/p&gt;

</description>
      <category>react</category>
      <category>html</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
