mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Rebuild website
This commit is contained in:
@@ -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">'react'</span><span class="p">;</span>
|
||||
<span class="kr">import</span> <span class="nx">ReactDOM</span> <span class="nx">from</span> <span class="s1">'react-dom'</span><span class="p">;</span>
|
||||
<span class="kr">import</span> <span class="s1">'./index.css'</span><span class="p">;</span>
|
||||
|
||||
Reference in New Issue
Block a user