doc: update npm.md db647aaf35

This commit is contained in:
jaywcjlove
2022-11-16 07:47:32 +00:00
parent d5d9d95fb5
commit 3f52f7761e
2 changed files with 8 additions and 6 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -346,7 +346,7 @@
</span><span class="code-line">$ npx react-native init AwesomeTSProject <span class="token parameter variable">--template</span> react-native-template-typescript </span><span class="code-line">$ npx react-native init AwesomeTSProject <span class="token parameter variable">--template</span> react-native-template-typescript
</span></code></pre> </span></code></pre>
<!--rehype:className=wrap-text--> <!--rehype:className=wrap-text-->
<p>使用 <code>npx</code> 直接创建一个 <a href="(https://reactnative.dev/docs/environment-setup#creating-a-new-application)">React Native</a> 应用</p> <p>使用 <code>npx</code> 直接创建一个 <a href="https://reactnative.dev/docs/environment-setup#creating-a-new-application">React Native</a> 应用</p>
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="创建一个-react-应用"><a aria-hidden="true" tabindex="-1" href="#创建一个-react-应用"><span class="icon icon-link"></span></a>创建一个 React 应用</h3><div class="wrap-body"> </div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="创建一个-react-应用"><a aria-hidden="true" tabindex="-1" href="#创建一个-react-应用"><span class="icon icon-link"></span></a>创建一个 React 应用</h3><div class="wrap-body">
<pre class="wrap-text"><code class="language-bash code-highlight"><span class="code-line">$ npx create-react-app my-app <pre class="wrap-text"><code class="language-bash code-highlight"><span class="code-line">$ npx create-react-app my-app
</span><span class="code-line">$ npx create-react-app my-app <span class="token parameter variable">--template</span> typescript </span><span class="code-line">$ npx create-react-app my-app <span class="token parameter variable">--template</span> typescript