Rebuild website

This commit is contained in:
Dan Abramov
2017-04-19 12:34:25 +01:00
parent a3b3125c5c
commit 636d515e62
2 changed files with 71 additions and 26 deletions
+3 -3
View File
@@ -224,9 +224,9 @@
<ol>
<li>Make sure you have a recent version of <a href="https://nodejs.org/en/">Node.js</a> installed.</li>
<li>Follow the <a href="/react/docs/installation.html#creating-a-new-application">installation instructions</a> to create a new project.</li>
<li>Replace the contents of <code>src/index.js</code> in the generated project with <a href="https://codepen.io/gaearon/pen/JNYBEZ?editors=0010" target="_blank">this JS code</a>.</li>
<li>Replace the contents of <code>src/index.css</code> in the generated project with <a href="https://codepen.io/gaearon/pen/JNYBEZ?editors=0100" target="_blank">this CSS code</a>.</li>
<li><p>Delete other files in the <code>src/</code> folder, and add three lines to the top of <code>src/index.js</code>:</p>
<li>Delete all files in the <code>src/</code> folder of the new project.</li>
<li>Add a file named <code>index.css</code> in the <code>src/</code> folder with <a href="https://codepen.io/gaearon/pen/JNYBEZ?editors=0100" target="_blank">this CSS code</a>.</li>
<li><p>Add a file named <code>index.js</code> in the <code>src/</code> folder with <a href="https://codepen.io/gaearon/pen/JNYBEZ?editors=0010" target="_blank">this JS code</a>, and then add three lines to the top of it:</p>
<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="kr">import</span> <span class="nx">React</span> <span class="nx">from</span> <span class="s1">&#39;react&#39;</span><span class="p">;</span>
<span class="kr">import</span> <span class="nx">ReactDOM</span> <span class="nx">from</span> <span class="s1">&#39;react-dom&#39;</span><span class="p">;</span>
<span class="kr">import</span> <span class="s1">&#39;./index.css&#39;</span><span class="p">;</span>