Skip to content

Commit 8e5f065

Browse files
authored
Merge pull request #5357 from selbekk/potpourri
Potpourri
2 parents f0047bf + 2e9bc28 commit 8e5f065

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+310
-342
lines changed

docusaurus/docs/adding-a-css-modules-stylesheet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: adding-a-css-modules-stylesheet
3-
title: Adding a CSS Modules Stylesheet
3+
title: Adding A CSS Modules Stylesheet
4+
sidebar_label: Adding CSS Modules
45
---
56

67
> Note: this feature is available with `[email protected]` and higher.

docusaurus/docs/adding-a-router.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: adding-a-router
3-
title: Adding a Router
3+
title: Adding A Router
44
---
55

66
Create React App doesn't prescribe a specific routing solution, but [React Router](https://reacttraining.com/react-router/web/) is the most popular one.

docusaurus/docs/adding-a-sass-stylesheet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: adding-a-sass-stylesheet
3-
title: Adding a Sass Stylesheet
3+
title: Adding A Sass Stylesheet
4+
sidebar_label: Adding Sass Stylesheets
45
---
56

67
> Note: this feature is available with `[email protected]` and higher.

docusaurus/docs/adding-a-stylesheet.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: adding-a-stylesheet
3-
title: Adding a Stylesheet
3+
title: Adding A Stylesheet
4+
sidebar_label: Adding Stylesheets
45
---
56

67
This project setup uses [Webpack](https://webpack.js.org/) for handling all assets. Webpack offers a custom way of “extending” the concept of `import` beyond JavaScript. To express that a JavaScript file depends on a CSS file, you need to **import the CSS from the JavaScript file**:

docusaurus/docs/adding-custom-environment-variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: adding-custom-environment-variables
33
title: Adding Custom Environment Variables
4+
sidebar_label: Environment Variables
45
---
56
> Note: this feature is available with `[email protected]` and higher.
67

docusaurus/docs/adding-images-fonts-and-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: adding-images-fonts-and-files
3-
title: Adding Images, Fonts, and Files
3+
title: Adding Images, Fonts, And Files
44
---
55

66
With Webpack, using static assets like images and fonts works similarly to CSS.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: alternatives-to-ejecting
3-
title: Alternatives to Ejecting
3+
title: Alternatives To Ejecting
44
---
55

66
[Ejecting](/docs/available-scripts#npm-run-eject) lets you customize anything, but from that point on you have to maintain the configuration and scripts yourself. This can be daunting if you have many similar projects. In such cases instead of ejecting we recommend to _fork_ `react-scripts` and any other packages you need. [This article](https://auth0.com/blog/how-to-configure-create-react-app/) dives into how to do it in depth. You can find more discussion in [this issue](https://github.com/facebook/create-react-app/issues/682).

docusaurus/docs/analyzing-the-bundle-size.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: analyzing-the-bundle-size
33
title: Analyzing the Bundle Size
4-
sidebar_label: Analyzing bundle size
4+
sidebar_label: Analyzing Bundle Size
55
---
66

77
[Source map explorer](https://www.npmjs.com/package/source-map-explorer) analyzes

docusaurus/docs/available-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: available-scripts
33
title: Available Scripts
4-
sidebar_label: Available scripts
4+
sidebar_label: Available Scripts
55
---
66

77
In the project directory, you can run:

docusaurus/docs/changing-the-page-title.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docusaurus/docs/debugging-in-the-editor.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

docusaurus/docs/debugging-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: debugging-tests
33
title: Debugging Tests
4-
sidebar_label: Debugging tests
4+
sidebar_label: Debugging Tests
55
---
66

77
There are various ways to setup a debugger for your Jest tests. We cover debugging in Chrome and [Visual Studio Code](https://code.visualstudio.com/).

docusaurus/docs/deployment.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,6 @@ When asked about the project path, make sure to specify the `build` folder, for
456456
457457
Note that in order to support routers that use HTML5 `pushState` API, you may want to rename the `index.html` in your build folder to `200.html` before deploying to Surge. This [ensures that every URL falls back to that file](https://surge.sh/help/adding-a-200-page-for-client-side-routing).
458458
459+
## Publishing Components To npm
460+
461+
Create React App doesn't provide any built-in functionality to publish a component to npm. If you're ready to extract a component from your project so other people can use it, we recommend moving it to a separate directory outside of your project and then using a tool like [nwb](https://github.com/insin/nwb#react-components-and-libraries) to prepare it for publishing.

docusaurus/docs/developing-components-in-isolation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: developing-components-in-isolation
3-
title: Developing Components in Isolation
3+
title: Developing Components In Isolation
44
---
55

66
Usually, in an app, you have a lot of UI components, and each of them has many different states.
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
---
22
id: documentation-intro
3-
title: Welcome to the Documentation
4-
sidebar_label: About the docs
3+
title: Welcome To The Documentation
4+
sidebar_label: About The Docs
55
---
66

77
Please navigate via the table of content for finding what you are looking for.
8+
9+
## Something Missing?
10+
11+
If you have ideas for more “How To” recipes that should be on this page, [let us know](https://github.com/facebook/create-react-app/issues) or [contribute some!](https://github.com/facebook/create-react-app/edit/master/packages/react-scripts/template/README.md)
12+
13+
## Feedback
14+
15+
We are always open to [your feedback](https://github.com/facebook/create-react-app/issues).

docusaurus/docs/fetching-data-with-ajax-requests.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: fetching-data-with-ajax-requests
33
title: Fetching Data with AJAX Requests
4+
sidebar_label: Fetching Data
45
---
56

67
React doesn't prescribe a specific approach to data fetching, but people commonly use either a library like [axios](https://github.com/axios/axios) or the [`fetch()` API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provided by the browser.

docusaurus/docs/folder-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: folder-structure
3-
title: Folder structure
3+
title: Folder Structure
44
---
55

66
After creation, your project should look like this:

docusaurus/docs/formatting-code-automatically.md

Lines changed: 0 additions & 54 deletions
This file was deleted.

docusaurus/docs/generating-dynamic-meta-tags-on-the-server.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docusaurus/docs/getting-started.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
id: getting-started
3-
title: Getting started
4-
sidebar_label: Getting started
3+
title: Getting Started
54
---
65

7-
Create React App is an officially supported way to create single-page React
6+
Create React App is an officially supported way to create single-page React
87
applications. It offers a modern build setup with no configuration.
98

109
## Quick Start

docusaurus/docs/importing-a-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: importing-a-component
3-
title: Importing a Component
3+
title: Importing A Component
44
---
55

66
This project setup supports ES6 modules thanks to Webpack.<br>

docusaurus/docs/injecting-data-from-the-server-into-the-page.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docusaurus/docs/installing-a-dependency.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: installing-a-dependency
3-
title: Installing a Dependency
3+
title: Installing A Dependency
44
---
55

66
The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other dependencies (for example, React Router) with `npm`:

docusaurus/docs/integrating-with-an-api-backend.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: integrating-with-an-api-backend
3-
title: Integrating with an API Backend
3+
title: Integrating With An API Backend
4+
sidebar_label: Integrating With An API
45
---
56

67
These tutorials will help you to integrate your app with an API backend running on another port,

docusaurus/docs/lint-output-in-the-editor.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docusaurus/docs/making-a-progressive-web-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: making-a-progressive-web-app
3-
title: Making a Progressive Web App
3+
title: Making A Progressive Web App
44
---
55

66
The production build has all the tools necessary to generate a first-class

docusaurus/docs/pre-rendering-into-static-html-files.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
id: pre-rendering-into-static-html-files
3-
title: Pre-Rendering into Static HTML Files
3+
title: Pre-Rendering Into Static HTML Files
4+
sidebar_label: Pre-Rendering Static HTML
45
---
56

67
If you’re hosting your `build` with a static hosting provider you can use [react-snapshot](https://www.npmjs.com/package/react-snapshot) or [react-snap](https://github.com/stereobooster/react-snap) to generate HTML pages for each route, or relative link, in your application. These pages will then seamlessly become active, or “hydrated”, when the JavaScript bundle has loaded.

docusaurus/docs/proxying-api-requests-in-development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
id: proxying-api-requests-in-development
3-
title: Proxying API Requests in Development
4-
sidebar_label: Proxying in development
3+
title: Proxying API Requests In Development
4+
sidebar_label: Proxying In Development
55
---
66

77
> Note: this feature is available with `[email protected]` and higher.

docusaurus/docs/publishing-components-to-npm.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docusaurus/docs/running-tests.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
id: running-tests
33
title: Running Tests
4-
sidebar_label: Running tests
54
---
65

76
> Note: this feature is available with `[email protected]` and higher.<br>

0 commit comments

Comments
 (0)