<?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: koheishingai</title>
    <description>The latest articles on DEV Community by koheishingai (@koheishingaihq).</description>
    <link>https://dev.to/koheishingaihq</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%2F44732%2F6b01bceb-417a-4aa5-8c61-469fd68ad8bc.jpg</url>
      <title>DEV Community: koheishingai</title>
      <link>https://dev.to/koheishingaihq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/koheishingaihq"/>
    <language>en</language>
    <item>
      <title>Using Sass in a React app development</title>
      <dc:creator>koheishingai</dc:creator>
      <pubDate>Wed, 13 Dec 2017 05:30:22 +0000</pubDate>
      <link>https://dev.to/koheishingaihq/react-with-sass-11e</link>
      <guid>https://dev.to/koheishingaihq/react-with-sass-11e</guid>
      <description>

&lt;h1&gt;
  
  
  Customizing Create React App : &lt;em&gt;CSS&lt;/em&gt;
&lt;/h1&gt;

&lt;h2&gt;
  
  
  CSS → Sass
&lt;/h2&gt;

&lt;p&gt;Getting started customizing &lt;a href="https://dev.to/koheishingaihq/how-to-get-started-with-react-9jj"&gt;create-react-app&lt;/a&gt; .&lt;/p&gt;

&lt;h3&gt;
  
  
  Install npm module : &lt;em&gt;node-sass-chokidar&lt;/em&gt;
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Current path : ~/create-react-app&lt;/span&gt;
npm &lt;span class="nb"&gt;install &lt;/span&gt;node-sass-chokidar &lt;span class="nt"&gt;--save-dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Install npm module : &lt;em&gt;npm-run-all&lt;/em&gt;
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Current path : ~/create-react-app&lt;/span&gt;
npm &lt;span class="nb"&gt;install &lt;/span&gt;npm-run-all &lt;span class="nt"&gt;--save-dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Edit package.json : &lt;em&gt;script&lt;/em&gt;
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight diff"&gt;&lt;code&gt;# Current path : ~/create-react-app/package.json
&lt;span class="gd"&gt;-    "start": "react-scripts start",
-    "build": "react-scripts build",
&lt;/span&gt;&lt;span class="gi"&gt;+    "start-js": "react-scripts start",
+    "start": "npm-run-all -p watch-css start-js",
+    "build": "npm run build-css &amp;amp;&amp;amp; react-scripts build",
+    "build-css": "node-sass-chokidar src/ -o src/",
+    "watch-css": "npm run build-css &amp;amp;&amp;amp; node-sass-chokidar src/ -o src/ --watch --recursive",
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Add custom sass file to the project
&lt;/h3&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight sass"&gt;&lt;code&gt;&lt;span class="cm"&gt;/* File path : ~/create-react-app/src/Custom.sass */
&lt;/span&gt;&lt;span class="nt"&gt;body&lt;/span&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="no"&gt;powderblue&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight diff"&gt;&lt;code&gt;# File path : ~/create-react-app/src/App.js
import './App.css';
&lt;span class="gi"&gt;+ import './Custom.css'
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;→ Running &lt;code&gt;npm start&lt;/code&gt; compiles &lt;code&gt;.sass&lt;/code&gt; files to &lt;code&gt;.css&lt;/code&gt; under &lt;code&gt;/src&lt;/code&gt; directory.&lt;br&gt;&lt;br&gt;
→ Open &lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt; to see &lt;code&gt;create-react-app&lt;/code&gt; .&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Demo : &lt;a href="https://koheishingaihq.github.io/create-react-app-with-sass"&gt;koheishingaiHQ.github.io/create-react-app-with-sass&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--A24NBxdb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://c1.staticflickr.com/5/4465/36878306283_8811ec8516_b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--A24NBxdb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://c1.staticflickr.com/5/4465/36878306283_8811ec8516_b.jpg" alt="create-react-app-with-sass-screen-shot"&gt;&lt;/a&gt;&lt;/p&gt;


</description>
      <category>reactsass</category>
    </item>
    <item>
      <title>Creating a React app with Create React App</title>
      <dc:creator>koheishingai</dc:creator>
      <pubDate>Wed, 13 Dec 2017 05:07:42 +0000</pubDate>
      <link>https://dev.to/koheishingaihq/how-to-get-started-with-react-9jj</link>
      <guid>https://dev.to/koheishingaihq/how-to-get-started-with-react-9jj</guid>
      <description>&lt;h1&gt;
  
  
  Using Create React App
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;Official : &lt;a href="https://github.com/facebookincubator/create-react-app"&gt;create-react-app&lt;/a&gt;  &lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Quick Overview
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Current path : ~/.&lt;/span&gt;
npm i &lt;span class="nt"&gt;-g&lt;/span&gt; create-react-app
create-react-app create-react-app
&lt;span class="nb"&gt;cd &lt;/span&gt;create-react-app/
npm start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://asciinema.org/a/151496"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aDlWc-BO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://asciinema.org/a/151496.png" alt="asciicast"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then open &lt;a href="http://localhost:3000"&gt;http://localhost:3000&lt;/a&gt; to see &lt;code&gt;create-react-app&lt;/code&gt; .&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Demo : &lt;a href="https://koheishingaihq.github.io/create-react-app"&gt;koheishingaiHQ.github.io/create-react-app&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zq2PuTr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://c1.staticflickr.com/5/4509/37268153700_b95567ae0f_h.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zq2PuTr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://c1.staticflickr.com/5/4509/37268153700_b95567ae0f_h.jpg" alt="create-react-app-root"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
    </item>
  </channel>
</rss>
