From d2b10ee4e84b8869e00e8e3ba8e13311c2c96a4d Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Mon, 2 Oct 2017 15:45:48 -0700 Subject: [PATCH] Refactored Installation page to no longer use tabs (#11050) --- docs/installation.md | 113 ++++--------------------------------------- 1 file changed, 9 insertions(+), 104 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 53122b1f..9758e8c4 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -11,114 +11,24 @@ redirect_from: - "docs/environments.html" next: hello-world.html --- - React is flexible and can be used in a variety of projects. You can create new apps with it, but you can also gradually introduce it into an existing codebase without doing a rewrite. -
- - - Which of these options best describes what you want to do? -
-
- -
- -
-
- -### Trying Out React +Here are a couple of ways to get started: + +* [Try React](#trying-out-react) +* [Create a New App](#creating-a-new-application) +* [Add React to an Existing App](#adding-react-to-an-existing-application) + +## Trying Out React If you're just interested in playing around with React, you can use CodePen. Try starting from [this Hello World example code](http://codepen.io/gaearon/pen/rrpgNB?editors=0010). You don't need to install anything; you can just modify the code and see if it works. If you prefer to use your own text editor, you can also download this HTML file, edit it, and open it from the local filesystem in your browser. It does a slow runtime code transformation, so don't use it in production. If you want to use it for a full application, there are two popular ways to get started with React: using Create React App, or adding it to an existing application. -
-
- -### Creating a New Application +## Creating a New Application [Create React App](http://github.com/facebookincubator/create-react-app) is the best way to start building a new React single page application. It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. @@ -133,11 +43,8 @@ npm start Create React App doesn't handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like Babel and webpack under the hood, but works with zero configuration. When you're ready to deploy to production, running `npm run build` will create an optimized build of your app in the `build` folder. You can learn more about Create React App [from its README](https://github.com/facebookincubator/create-react-app#create-react-app-) and the [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#table-of-contents). -
- -
-### Adding React to an Existing Application +## Adding React to an Existing Application You don't need to rewrite your app to start using React. @@ -249,5 +156,3 @@ We also recommend to verify that the CDN you are using sets the `Access-Control- ![Access-Control-Allow-Origin: *](../img/docs/cdn-cors-header.png) This enables a better [error handling experience](/blog/2017/07/26/error-handling-in-react-16.html) in React 16 and later. -
-