mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Rebuild website
This commit is contained in:
@@ -244,7 +244,8 @@
|
||||
<li>Follow the <a href="/react/docs/installation.html#creating-a-new-application">installation instructions</a> to create a new project.</li>
|
||||
<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/oWWQNa?editors=0100">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/oWWQNa?editors=0010">this JS code</a>, and then add three lines to the top of it:</p>
|
||||
<li>Add a file named <code>index.js</code> in the <code>src/</code> folder with <a href="https://codepen.io/gaearon/pen/oWWQNa?editors=0010">this JS code</a>.</li>
|
||||
<li><p>Add these three lines to the top of <code>index.js</code> in the <code>src/</code> folder:</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