Create React App Build & Test PRs Welcome

Logo

Create React apps with no build configuration.

Create React App works on macOS, Windows, and Linux.
If something doesn’t work, please file an issue.
If you have questions or need help, please ask in GitHub Discussions.

Quick Overview

npx create-react-app my-app
cd my-app
npm start

If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.

(npx comes with npm 5.2+ and higher, see instructions for older npm versions)

Then open http://localhost:3000/ to see your app.
When you’re ready to deploy to production, create a minified bundle with npm run build.

npm start

Get Started Immediately

You don’t need to install or configure tools like webpack or Babel.
They are preconfigured and hidden so that you can focus on the code.

Create a project, and you’re good to go.

Creating an App

You’ll need to have Node 14.0.0 or later version on your local development machine (but it’s not required on the server). We recommend using the latest LTS version. You can use nvm (macOS/Linux) or nvm-windows to switch Node versions between different projects.

To create a new app, you may choose one of the following methods:

npx

npx create-react-app my-app

(npx is a package runner tool that comes with npm 5.2+ and higher, see instructions for older npm versions)

npm

npm init react-app my-app

npm init <initializer> is available in npm 6+

Yarn

yarn create react-app my-app

yarn create <starter-kit-package> is available in Yarn 0.25+

It will create a directory called my-app inside the current folder.
Inside that directory, it will generate the initial project structure and install the transitive dependencies:

my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── App.test.js
    ├── index.css
    ├── index.js
    ├── logo.svg
    └── serviceWorker.js
    └── setupTests.js

No configuration or complicated folder structures, only the files you need to build your app.
Once the installation is done, you can open your project folder:

cd my-app

Inside the newly created project, you can run some built-in commands:

npm start or yarn start

Runs the app in development mode.
Open http://localhost:3000 to view it in the browser.

The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console.

Build errors

npm test or yarn test

Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit.

Read more about testing.

npm run build or yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.

Your app is ready to be deployed.

User Guide

You can find detailed instructions on using Create React App and many tips in its documentation.

How to Update to New Versions?

Please refer to the User Guide for this and other information.

Philosophy

  • One Dependency: There is only one build dependency. It uses webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them.

  • No Configuration Required: You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.

  • No Lock-In: You can “eject” to a custom setup at any time. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off.

What’s Included?

Your environment will have everything you need to build a modern single-page React app:

  • React, JSX, ES6, TypeScript and Flow syntax support.
  • Language extras beyond ES6 like the object spread operator.
  • Autoprefixed CSS, so you don’t need -webkit- or other prefixes.
  • A fast interactive unit test runner with built-in support for coverage reporting.
  • A live development server that warns about common mistakes.
  • A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps.
  • An offline-first service worker and a web app manifest, meeting all the Progressive Web App criteria. (Note: Using the service worker is opt-in as of [email protected] and higher)
  • Hassle-free updates for the above tools with a single dependency.

Check out this guide for an overview of how these tools fit together.

The tradeoff is that these tools are preconfigured to work in a specific way. If your project needs more customization, you can "eject" and customize it, but then you will need to maintain this configuration.

Popular Alternatives

Create React App is a great fit for:

  • Learning React in a comfortable and feature-rich development environment.
  • Starting new single-page React applications.
  • Creating examples with React for your libraries and components.

Here are a few common cases where you might want to try something else:

  • If you want to try React without hundreds of transitive build tool dependencies, consider using a single HTML file or an online sandbox instead.

  • If you need to integrate React code with a server-side template framework like Rails, Django or Symfony, or if you’re not building a single-page app, consider using nwb, or Neutrino which are more flexible. For Rails specifically, you can use Rails Webpacker. For Symfony, try Symfony's webpack Encore.

  • If you need to publish a React component, nwb can also do this, as well as Neutrino's react-components preset.

  • If you want to do server rendering with React and Node.js, check out Next.js or Razzle. Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.

  • If your website is mostly static (for example, a portfolio or a blog), consider using Gatsby or Next.js. Unlike Create React App, Gatsby pre-renders the website into HTML at build time. Next.js supports both server rendering and pre-rendering.

  • Finally, if you need more customization, check out Neutrino and its React preset.

All of the above tools can work with little to no configuration.

If you prefer configuring the build yourself, follow this guide.

React Native

Looking for something similar, but for React Native?
Check out Expo CLI.

Contributing

We'd love to have your helping hand on create-react-app! See CONTRIBUTING.md for more information on what we're looking for and how to get started.

Supporting Create React App

Create React App is a community maintained project and all contributors are volunteers. If you'd like to support the future development of Create React App then please consider donating to our Open Collective.

Credits

This project exists thanks to all the people who contribute.

Thanks to Netlify for hosting our documentation.

Acknowledgements

We are grateful to the authors of existing related projects for their ideas and collaboration:

License

Create React App is open source software licensed as MIT. The Create React App logo is licensed under a Creative Commons Attribution 4.0 International license.

facebook/create-react-app

{
"props": {
"initialPayload": {
"allShortcutsEnabled": false,
"path": "/",
"repo": {
"id": 63537249,
"defaultBranch": "main",
"name": "create-react-app",
"ownerLogin": "facebook",
"currentUserCanPush": false,
"isFork": false,
"isEmpty": false,
"createdAt": "2016-07-17T14:55:11.000Z",
"ownerAvatar": "https://avatars.githubusercontent.com/u/69631?v=4",
"public": true,
"private": false,
"isOrgOwned": true
},
"currentUser": null,
"refInfo": {
"name": "main",
"listCacheKey": "v0:1696489635.0",
"canEdit": false,
"refType": "branch",
"currentOid": "dd420a6d25d037decd7b81175626dfca817437ff"
},
"tree": {
"items": [
{
"name": ".github",
"path": ".github",
"contentType": "directory"
},
{
"name": "docusaurus",
"path": "docusaurus",
"contentType": "directory"
},
{
"name": "packages",
"path": "packages",
"contentType": "directory"
},
{
"name": "tasks",
"path": "tasks",
"contentType": "directory"
},
{
"name": "test",
"path": "test",
"contentType": "directory"
},
{
"name": ".alexignore",
"path": ".alexignore",
"contentType": "file"
},
{
"name": ".alexrc",
"path": ".alexrc",
"contentType": "file"
},
{
"name": ".eslintignore",
"path": ".eslintignore",
"contentType": "file"
},
{
"name": ".eslintrc.json",
"path": ".eslintrc.json",
"contentType": "file"
},
{
"name": ".gitattributes",
"path": ".gitattributes",
"contentType": "file"
},
{
"name": ".gitignore",
"path": ".gitignore",
"contentType": "file"
},
{
"name": ".prettierignore",
"path": ".prettierignore",
"contentType": "file"
},
{
"name": ".prettierrc",
"path": ".prettierrc",
"contentType": "file"
},
{
"name": "CHANGELOG-0.x.md",
"path": "CHANGELOG-0.x.md",
"contentType": "file"
},
{
"name": "CHANGELOG-1.x.md",
"path": "CHANGELOG-1.x.md",
"contentType": "file"
},
{
"name": "CHANGELOG-2.x.md",
"path": "CHANGELOG-2.x.md",
"contentType": "file"
},
{
"name": "CHANGELOG-3.x.md",
"path": "CHANGELOG-3.x.md",
"contentType": "file"
},
{
"name": "CHANGELOG-4.x.md",
"path": "CHANGELOG-4.x.md",
"contentType": "file"
},
{
"name": "CHANGELOG.md",
"path": "CHANGELOG.md",
"contentType": "file"
},
{
"name": "CODE_OF_CONDUCT.md",
"path": "CODE_OF_CONDUCT.md",
"contentType": "file"
},
{
"name": "CONTRIBUTING.md",
"path": "CONTRIBUTING.md",
"contentType": "file"
},
{
"name": "LICENSE",
"path": "LICENSE",
"contentType": "file"
},
{
"name": "README.md",
"path": "README.md",
"contentType": "file"
},
{
"name": "SECURITY.md",
"path": "SECURITY.md",
"contentType": "file"
},
{
"name": "lerna.json",
"path": "lerna.json",
"contentType": "file"
},
{
"name": "netlify.toml",
"path": "netlify.toml",
"contentType": "file"
},
{
"name": "package-lock.json",
"path": "package-lock.json",
"contentType": "file"
},
{
"name": "package.json",
"path": "package.json",
"contentType": "file"
},
{
"name": "screencast-error.svg",
"path": "screencast-error.svg",
"contentType": "file"
},
{
"name": "screencast.svg",
"path": "screencast.svg",
"contentType": "file"
}
],
"templateDirectorySuggestionUrl": null,
"readme": null,
"totalCount": 30,
"showBranchInfobar": false
},
"fileTree": null,
"fileTreeProcessingTime": null,
"foldersToFetch": [],
"treeExpanded": false,
"symbolsExpanded": false,
"isOverview": true,
"overview": {
"banners": {
"shouldRecommendReadme": false,
"isPersonalRepo": false,
"showUseActionBanner": false,
"actionSlug": null,
"actionId": null,
"showProtectBranchBanner": false,
"publishBannersInfo": {
"dismissActionNoticePath": "/settings/dismiss-notice/publish_action_from_repo",
"releasePath": "/facebook/create-react-app/releases/new?marketplace=true",
"showPublishActionBanner": false
},
"interactionLimitBanner": null,
"showInvitationBanner": false,
"inviterName": null,
"actionsMigrationBannerInfo": {
"releaseTags": [],
"showImmutableActionsMigrationBanner": false,
"initialMigrationStatus": null
}
},
"codeButton": {
"contactPath": "/contact",
"isEnterprise": false,
"local": {
"protocolInfo": {
"httpAvailable": true,
"sshAvailable": null,
"httpUrl": "https://github.com/facebook/create-react-app.git",
"showCloneWarning": null,
"sshUrl": null,
"sshCertificatesRequired": null,
"sshCertificatesAvailable": null,
"ghCliUrl": "gh repo clone facebook/create-react-app",
"defaultProtocol": "http",
"newSshKeyUrl": "/settings/ssh/new",
"setProtocolPath": "/users/set_protocol"
},
"platformInfo": {
"cloneUrl": "https://desktop.github.com",
"showVisualStudioCloneButton": false,
"visualStudioCloneUrl": "https://windows.github.com",
"showXcodeCloneButton": false,
"xcodeCloneUrl": "xcode://clone?repo=https%3A%2F%2Fgithub.com%2Ffacebook%2Fcreate-react-app",
"zipballUrl": "/facebook/create-react-app/archive/refs/heads/main.zip"
}
},
"newCodespacePath": "/codespaces/new?hide_repo_select=true&repo=63537249"
},
"popovers": {
"rename": null,
"renamedParentRepo": null
},
"commitCount": "2,804",
"overviewFiles": [
{
"displayName": "README.md",
"repoName": "create-react-app",
"refName": "main",
"path": "README.md",
"preferredFileType": "readme",
"tabName": "README",
"richText": "<article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Create React App <a href=\"https://github.com/facebook/create-react-app/actions/workflows/build-and-test.yml\"><img src=\"https://github.com/facebook/create-react-app/actions/workflows/build-and-test.yml/badge.svg?branch=main\" alt=\"Build &amp; Test\" style=\"max-width: 100%;\"></a> <a href=\"https://github.com/facebook/create-react-app/blob/main/CONTRIBUTING.md\"><img src=\"https://camo.githubusercontent.com/02856e08e249f91890ab08c5770b25afe81dcf939e840c4f66bbc2c901ddb39f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d677265656e2e737667\" alt=\"PRs Welcome\" data-canonical-src=\"https://img.shields.io/badge/PRs-welcome-green.svg\" style=\"max-width: 100%;\"></a></h1><a id=\"user-content-create-react-app--\" class=\"anchor\" aria-label=\"Permalink: Create React App \" href=\"#create-react-app--\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\"><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/3850f27e1b93c6093c67681e0925242569ebf461e0ba809c0d1a3fd120ee7b81/68747470733a2f2f6372656174652d72656163742d6170702e6465762f696d672f6c6f676f2e737667\"><img alt=\"Logo\" align=\"right\" src=\"https://camo.githubusercontent.com/3850f27e1b93c6093c67681e0925242569ebf461e0ba809c0d1a3fd120ee7b81/68747470733a2f2f6372656174652d72656163742d6170702e6465762f696d672f6c6f676f2e737667\" width=\"20%\" data-canonical-src=\"https://create-react-app.dev/img/logo.svg\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">Create React apps with no build configuration.</p>\n<ul dir=\"auto\">\n<li><a href=\"#creating-an-app\">Creating an App</a> – How to create a new app.</li>\n<li><a href=\"https://facebook.github.io/create-react-app/\" rel=\"nofollow\">User Guide</a> – How to develop apps bootstrapped with Create React App.</li>\n</ul>\n<p dir=\"auto\">Create React App works on macOS, Windows, and Linux.<br>\nIf something doesn’t work, please <a href=\"https://github.com/facebook/create-react-app/issues/new\">file an issue</a>.<br>\nIf you have questions or need help, please ask in <a href=\"https://github.com/facebook/create-react-app/discussions\">GitHub Discussions</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Quick Overview</h2><a id=\"user-content-quick-overview\" class=\"anchor\" aria-label=\"Permalink: Quick Overview\" href=\"#quick-overview\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"npx create-react-app my-app\ncd my-app\nnpm start\"><pre>npx create-react-app my-app\n<span class=\"pl-c1\">cd</span> my-app\nnpm start</pre></div>\n<p dir=\"auto\">If you've previously installed <code>create-react-app</code> globally via <code>npm install -g create-react-app</code>, we recommend you uninstall the package using <code>npm uninstall -g create-react-app</code> or <code>yarn global remove create-react-app</code> to ensure that npx always uses the latest version.</p>\n<p dir=\"auto\"><em>(<a href=\"https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b\" rel=\"nofollow\">npx</a> comes with npm 5.2+ and higher, see <a href=\"https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f\">instructions for older npm versions</a>)</em></p>\n<p dir=\"auto\">Then open <a href=\"http://localhost:3000/\" rel=\"nofollow\">http://localhost:3000/</a> to see your app.<br>\nWhen you’re ready to deploy to production, create a minified bundle with <code>npm run build</code>.</p>\n<p align=\"center\" dir=\"auto\">\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/a983a24c7f4dc5d4c7a750c65271c4a98fcaeca7e975919e6cb97c2bff968019/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f66616365626f6f6b2f6372656174652d72656163742d61707040323762343261633765666130313866323534313135336162333064363331383066356661333965302f73637265656e636173742e737667\"><img src=\"https://camo.githubusercontent.com/a983a24c7f4dc5d4c7a750c65271c4a98fcaeca7e975919e6cb97c2bff968019/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f66616365626f6f6b2f6372656174652d72656163742d61707040323762343261633765666130313866323534313135336162333064363331383066356661333965302f73637265656e636173742e737667\" width=\"600\" alt=\"npm start\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/facebook/create-react-app@27b42ac7efa018f2541153ab30d63180f5fa39e0/screencast.svg\" style=\"max-width: 100%;\"></a>\n</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Get Started Immediately</h3><a id=\"user-content-get-started-immediately\" class=\"anchor\" aria-label=\"Permalink: Get Started Immediately\" href=\"#get-started-immediately\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You <strong>don’t</strong> need to install or configure tools like webpack or Babel.<br>\nThey are preconfigured and hidden so that you can focus on the code.</p>\n<p dir=\"auto\">Create a project, and you’re good to go.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Creating an App</h2><a id=\"user-content-creating-an-app\" class=\"anchor\" aria-label=\"Permalink: Creating an App\" href=\"#creating-an-app\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\"><strong>You’ll need to have Node 14.0.0 or later version on your local development machine</strong> (but it’s not required on the server). We recommend using the latest LTS version. You can use <a href=\"https://github.com/creationix/nvm#installation\">nvm</a> (macOS/Linux) or <a href=\"https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows\">nvm-windows</a> to switch Node versions between different projects.</p>\n<p dir=\"auto\">To create a new app, you may choose one of the following methods:</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">npx</h3><a id=\"user-content-npx\" class=\"anchor\" aria-label=\"Permalink: npx\" href=\"#npx\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"npx create-react-app my-app\"><pre>npx create-react-app my-app</pre></div>\n<p dir=\"auto\"><em>(<a href=\"https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b\" rel=\"nofollow\">npx</a> is a package runner tool that comes with npm 5.2+ and higher, see <a href=\"https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f\">instructions for older npm versions</a>)</em></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">npm</h3><a id=\"user-content-npm\" class=\"anchor\" aria-label=\"Permalink: npm\" href=\"#npm\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"npm init react-app my-app\"><pre>npm init react-app my-app</pre></div>\n<p dir=\"auto\"><em><code>npm init &lt;initializer&gt;</code> is available in npm 6+</em></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Yarn</h3><a id=\"user-content-yarn\" class=\"anchor\" aria-label=\"Permalink: Yarn\" href=\"#yarn\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"yarn create react-app my-app\"><pre>yarn create react-app my-app</pre></div>\n<p dir=\"auto\"><em><a href=\"https://yarnpkg.com/lang/en/docs/cli/create/\" rel=\"nofollow\"><code>yarn create &lt;starter-kit-package&gt;</code></a> is available in Yarn 0.25+</em></p>\n<p dir=\"auto\">It will create a directory called <code>my-app</code> inside the current folder.<br>\nInside that directory, it will generate the initial project structure and install the transitive dependencies:</p>\n<div class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"my-app\n├── README.md\n├── node_modules\n├── package.json\n├── .gitignore\n├── public\n│ ├── favicon.ico\n│ ├── index.html\n│ └── manifest.json\n└── src\n ├── App.css\n ├── App.js\n ├── App.test.js\n ├── index.css\n ├── index.js\n ├── logo.svg\n └── serviceWorker.js\n └── setupTests.js\"><pre class=\"notranslate\"><code>my-app\n├── README.md\n├── node_modules\n├── package.json\n├── .gitignore\n├── public\n│ ├── favicon.ico\n│ ├── index.html\n│ └── manifest.json\n└── src\n ├── App.css\n ├── App.js\n ├── App.test.js\n ├── index.css\n ├── index.js\n ├── logo.svg\n └── serviceWorker.js\n └── setupTests.js\n</code></pre></div>\n<p dir=\"auto\">No configuration or complicated folder structures, only the files you need to build your app.<br>\nOnce the installation is done, you can open your project folder:</p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"cd my-app\"><pre><span class=\"pl-c1\">cd</span> my-app</pre></div>\n<p dir=\"auto\">Inside the newly created project, you can run some built-in commands:</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"><code>npm start</code> or <code>yarn start</code></h3><a id=\"user-content-npm-start-or-yarn-start\" class=\"anchor\" aria-label=\"Permalink: npm start or yarn start\" href=\"#npm-start-or-yarn-start\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Runs the app in development mode.<br>\nOpen <a href=\"http://localhost:3000\" rel=\"nofollow\">http://localhost:3000</a> to view it in the browser.</p>\n<p dir=\"auto\">The page will automatically reload if you make changes to the code.<br>\nYou will see the build errors and lint warnings in the console.</p>\n<p align=\"center\" dir=\"auto\">\n<a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://camo.githubusercontent.com/8cb461372295af95457a4fa0b7cc9f4bdb56c0fa83486cb3127ccc80957ad39d/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f6d6172696f6e65626c2f6372656174652d72656163742d61707040396636323832363731633534663038373461666433376137326636363839373237623536323439382f73637265656e636173742d6572726f722e737667\"><img src=\"https://camo.githubusercontent.com/8cb461372295af95457a4fa0b7cc9f4bdb56c0fa83486cb3127ccc80957ad39d/68747470733a2f2f63646e2e6a7364656c6976722e6e65742f67682f6d6172696f6e65626c2f6372656174652d72656163742d61707040396636323832363731633534663038373461666433376137326636363839373237623536323439382f73637265656e636173742d6572726f722e737667\" width=\"600\" alt=\"Build errors\" data-canonical-src=\"https://cdn.jsdelivr.net/gh/marionebl/create-react-app@9f6282671c54f0874afd37a72f6689727b562498/screencast-error.svg\" style=\"max-width: 100%;\"></a>\n</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"><code>npm test</code> or <code>yarn test</code></h3><a id=\"user-content-npm-test-or-yarn-test\" class=\"anchor\" aria-label=\"Permalink: npm test or yarn test\" href=\"#npm-test-or-yarn-test\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Runs the test watcher in an interactive mode.<br>\nBy default, runs tests related to files changed since the last commit.</p>\n<p dir=\"auto\"><a href=\"https://facebook.github.io/create-react-app/docs/running-tests\" rel=\"nofollow\">Read more about testing.</a></p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"><code>npm run build</code> or <code>yarn build</code></h3><a id=\"user-content-npm-run-build-or-yarn-build\" class=\"anchor\" aria-label=\"Permalink: npm run build or yarn build\" href=\"#npm-run-build-or-yarn-build\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Builds the app for production to the <code>build</code> folder.<br>\nIt correctly bundles React in production mode and optimizes the build for the best performance.</p>\n<p dir=\"auto\">The build is minified and the filenames include the hashes.<br></p>\n<p dir=\"auto\">Your app is ready to be deployed.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">User Guide</h2><a id=\"user-content-user-guide\" class=\"anchor\" aria-label=\"Permalink: User Guide\" href=\"#user-guide\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">You can find detailed instructions on using Create React App and many tips in <a href=\"https://facebook.github.io/create-react-app/\" rel=\"nofollow\">its documentation</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">How to Update to New Versions?</h2><a id=\"user-content-how-to-update-to-new-versions\" class=\"anchor\" aria-label=\"Permalink: How to Update to New Versions?\" href=\"#how-to-update-to-new-versions\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Please refer to the <a href=\"https://facebook.github.io/create-react-app/docs/updating-to-new-releases\" rel=\"nofollow\">User Guide</a> for this and other information.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Philosophy</h2><a id=\"user-content-philosophy\" class=\"anchor\" aria-label=\"Permalink: Philosophy\" href=\"#philosophy\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\"><strong>One Dependency:</strong> There is only one build dependency. It uses webpack, Babel, ESLint, and other amazing projects, but provides a cohesive curated experience on top of them.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>No Configuration Required:</strong> You don't need to configure anything. A reasonably good configuration of both development and production builds is handled for you so you can focus on writing code.</p>\n</li>\n<li>\n<p dir=\"auto\"><strong>No Lock-In:</strong> You can “eject” to a custom setup at any time. Run a single command, and all the configuration and build dependencies will be moved directly into your project, so you can pick up right where you left off.</p>\n</li>\n</ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">What’s Included?</h2><a id=\"user-content-whats-included\" class=\"anchor\" aria-label=\"Permalink: What’s Included?\" href=\"#whats-included\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Your environment will have everything you need to build a modern single-page React app:</p>\n<ul dir=\"auto\">\n<li>React, JSX, ES6, TypeScript and Flow syntax support.</li>\n<li>Language extras beyond ES6 like the object spread operator.</li>\n<li>Autoprefixed CSS, so you don’t need <code>-webkit-</code> or other prefixes.</li>\n<li>A fast interactive unit test runner with built-in support for coverage reporting.</li>\n<li>A live development server that warns about common mistakes.</li>\n<li>A build script to bundle JS, CSS, and images for production, with hashes and sourcemaps.</li>\n<li>An offline-first <a href=\"https://developers.google.com/web/fundamentals/getting-started/primers/service-workers\" rel=\"nofollow\">service worker</a> and a <a href=\"https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/\" rel=\"nofollow\">web app manifest</a>, meeting all the <a href=\"https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app\" rel=\"nofollow\">Progressive Web App</a> criteria. (<em>Note: Using the service worker is opt-in as of <code>[email protected]</code> and higher</em>)</li>\n<li>Hassle-free updates for the above tools with a single dependency.</li>\n</ul>\n<p dir=\"auto\">Check out <a href=\"https://github.com/nitishdayal/cra_closer_look\">this guide</a> for an overview of how these tools fit together.</p>\n<p dir=\"auto\">The tradeoff is that <strong>these tools are preconfigured to work in a specific way</strong>. If your project needs more customization, you can <a href=\"https://facebook.github.io/create-react-app/docs/available-scripts#npm-run-eject\" rel=\"nofollow\">\"eject\"</a> and customize it, but then you will need to maintain this configuration.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Popular Alternatives</h2><a id=\"user-content-popular-alternatives\" class=\"anchor\" aria-label=\"Permalink: Popular Alternatives\" href=\"#popular-alternatives\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Create React App is a great fit for:</p>\n<ul dir=\"auto\">\n<li><strong>Learning React</strong> in a comfortable and feature-rich development environment.</li>\n<li><strong>Starting new single-page React applications.</strong></li>\n<li><strong>Creating examples</strong> with React for your libraries and components.</li>\n</ul>\n<p dir=\"auto\">Here are a few common cases where you might want to try something else:</p>\n<ul dir=\"auto\">\n<li>\n<p dir=\"auto\">If you want to <strong>try React</strong> without hundreds of transitive build tool dependencies, consider <a href=\"https://reactjs.org/docs/getting-started.html#try-react\" rel=\"nofollow\">using a single HTML file or an online sandbox instead</a>.</p>\n</li>\n<li>\n<p dir=\"auto\">If you need to <strong>integrate React code with a server-side template framework</strong> like Rails, Django or Symfony, or if you’re <strong>not building a single-page app</strong>, consider using <a href=\"https://github.com/insin/nwb\">nwb</a>, or <a href=\"https://neutrino.js.org/\" rel=\"nofollow\">Neutrino</a> which are more flexible. For Rails specifically, you can use <a href=\"https://github.com/rails/webpacker\">Rails Webpacker</a>. For Symfony, try <a href=\"https://symfony.com/doc/current/frontend/encore/reactjs.html\" rel=\"nofollow\">Symfony's webpack Encore</a>.</p>\n</li>\n<li>\n<p dir=\"auto\">If you need to <strong>publish a React component</strong>, <a href=\"https://github.com/insin/nwb\">nwb</a> can <a href=\"https://github.com/insin/nwb#react-components-and-libraries\">also do this</a>, as well as <a href=\"https://neutrino.js.org/packages/react-components/\" rel=\"nofollow\">Neutrino's react-components preset</a>.</p>\n</li>\n<li>\n<p dir=\"auto\">If you want to do <strong>server rendering</strong> with React and Node.js, check out <a href=\"https://nextjs.org/\" rel=\"nofollow\">Next.js</a> or <a href=\"https://github.com/jaredpalmer/razzle\">Razzle</a>. Create React App is agnostic of the backend, and only produces static HTML/JS/CSS bundles.</p>\n</li>\n<li>\n<p dir=\"auto\">If your website is <strong>mostly static</strong> (for example, a portfolio or a blog), consider using <a href=\"https://www.gatsbyjs.org/\" rel=\"nofollow\">Gatsby</a> or <a href=\"https://nextjs.org/\" rel=\"nofollow\">Next.js</a>. Unlike Create React App, Gatsby pre-renders the website into HTML at build time. Next.js supports both server rendering and pre-rendering.</p>\n</li>\n<li>\n<p dir=\"auto\">Finally, if you need <strong>more customization</strong>, check out <a href=\"https://neutrino.js.org/\" rel=\"nofollow\">Neutrino</a> and its <a href=\"https://neutrino.js.org/packages/react/\" rel=\"nofollow\">React preset</a>.</p>\n</li>\n</ul>\n<p dir=\"auto\">All of the above tools can work with little to no configuration.</p>\n<p dir=\"auto\">If you prefer configuring the build yourself, <a href=\"https://reactjs.org/docs/add-react-to-a-website.html\" rel=\"nofollow\">follow this guide</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">React Native</h2><a id=\"user-content-react-native\" class=\"anchor\" aria-label=\"Permalink: React Native\" href=\"#react-native\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Looking for something similar, but for React Native?<br>\nCheck out <a href=\"https://github.com/expo/expo-cli\">Expo CLI</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Contributing</h2><a id=\"user-content-contributing\" class=\"anchor\" aria-label=\"Permalink: Contributing\" href=\"#contributing\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">We'd love to have your helping hand on <code>create-react-app</code>! See <a href=\"/facebook/create-react-app/blob/main/CONTRIBUTING.md\">CONTRIBUTING.md</a> for more information on what we're looking for and how to get started.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Supporting Create React App</h2><a id=\"user-content-supporting-create-react-app\" class=\"anchor\" aria-label=\"Permalink: Supporting Create React App\" href=\"#supporting-create-react-app\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Create React App is a community maintained project and all contributors are volunteers. If you'd like to support the future development of Create React App then please consider donating to our <a href=\"https://opencollective.com/create-react-app\" rel=\"nofollow\">Open Collective</a>.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Credits</h2><a id=\"user-content-credits\" class=\"anchor\" aria-label=\"Permalink: Credits\" href=\"#credits\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">This project exists thanks to all the people who <a href=\"/facebook/create-react-app/blob/main/CONTRIBUTING.md\">contribute</a>.<br>\n<a href=\"https://github.com/facebook/create-react-app/graphs/contributors\"><img src=\"https://camo.githubusercontent.com/5be9fd3b5b4442c0f4ec583f34ad65951d4a43893a86cf3e84a003e426486dfe/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f6372656174652d72656163742d6170702f636f6e7472696275746f72732e7376673f77696474683d38393026627574746f6e3d66616c7365\" data-canonical-src=\"https://opencollective.com/create-react-app/contributors.svg?width=890&amp;button=false\" style=\"max-width: 100%;\"></a></p>\n<p dir=\"auto\">Thanks to <a href=\"https://www.netlify.com/\" rel=\"nofollow\">Netlify</a> for hosting our documentation.</p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">Acknowledgements</h2><a id=\"user-content-acknowledgements\" class=\"anchor\" aria-label=\"Permalink: Acknowledgements\" href=\"#acknowledgements\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">We are grateful to the authors of existing related projects for their ideas and collaboration:</p>\n<ul dir=\"auto\">\n<li><a href=\"https://github.com/eanplatter\">@eanplatter</a></li>\n<li><a href=\"https://github.com/insin\">@insin</a></li>\n<li><a href=\"https://github.com/mxstbr\">@mxstbr</a></li>\n</ul>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\">License</h2><a id=\"user-content-license\" class=\"anchor\" aria-label=\"Permalink: License\" href=\"#license\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"></path></svg></a></div>\n<p dir=\"auto\">Create React App is open source software <a href=\"https://github.com/facebook/create-react-app/blob/main/LICENSE\">licensed as MIT</a>. The Create React App logo is licensed under a <a href=\"https://creativecommons.org/licenses/by/4.0/\" rel=\"nofollow\">Creative Commons Attribution 4.0 International license</a>.</p>\n</article>",
"loaded": true,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": [
{
"level": 1,
"text": "Create React App ",
"anchor": "create-react-app--",
"htmlText": "Create React App "
},
{
"level": 2,
"text": "Quick Overview",
"anchor": "quick-overview",
"htmlText": "Quick Overview"
},
{
"level": 3,
"text": "Get Started Immediately",
"anchor": "get-started-immediately",
"htmlText": "Get Started Immediately"
},
{
"level": 2,
"text": "Creating an App",
"anchor": "creating-an-app",
"htmlText": "Creating an App"
},
{
"level": 3,
"text": "npx",
"anchor": "npx",
"htmlText": "npx"
},
{
"level": 3,
"text": "npm",
"anchor": "npm",
"htmlText": "npm"
},
{
"level": 3,
"text": "Yarn",
"anchor": "yarn",
"htmlText": "Yarn"
},
{
"level": 3,
"text": "npm start or yarn start",
"anchor": "npm-start-or-yarn-start",
"htmlText": "npm start or yarn start"
},
{
"level": 3,
"text": "npm test or yarn test",
"anchor": "npm-test-or-yarn-test",
"htmlText": "npm test or yarn test"
},
{
"level": 3,
"text": "npm run build or yarn build",
"anchor": "npm-run-build-or-yarn-build",
"htmlText": "npm run build or yarn build"
},
{
"level": 2,
"text": "User Guide",
"anchor": "user-guide",
"htmlText": "User Guide"
},
{
"level": 2,
"text": "How to Update to New Versions?",
"anchor": "how-to-update-to-new-versions",
"htmlText": "How to Update to New Versions?"
},
{
"level": 2,
"text": "Philosophy",
"anchor": "philosophy",
"htmlText": "Philosophy"
},
{
"level": 2,
"text": "What’s Included?",
"anchor": "whats-included",
"htmlText": "What’s Included?"
},
{
"level": 2,
"text": "Popular Alternatives",
"anchor": "popular-alternatives",
"htmlText": "Popular Alternatives"
},
{
"level": 2,
"text": "React Native",
"anchor": "react-native",
"htmlText": "React Native"
},
{
"level": 2,
"text": "Contributing",
"anchor": "contributing",
"htmlText": "Contributing"
},
{
"level": 2,
"text": "Supporting Create React App",
"anchor": "supporting-create-react-app",
"htmlText": "Supporting Create React App"
},
{
"level": 2,
"text": "Credits",
"anchor": "credits",
"htmlText": "Credits"
},
{
"level": 2,
"text": "Acknowledgements",
"anchor": "acknowledgements",
"htmlText": "Acknowledgements"
},
{
"level": 2,
"text": "License",
"anchor": "license",
"htmlText": "License"
}
],
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Ffacebook%2Fcreate-react-app"
}
},
{
"displayName": "CODE_OF_CONDUCT.md",
"repoName": "create-react-app",
"refName": "main",
"path": "CODE_OF_CONDUCT.md",
"preferredFileType": "code_of_conduct",
"tabName": "Code of conduct",
"richText": null,
"loaded": false,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": null,
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Ffacebook%2Fcreate-react-app"
}
},
{
"displayName": "LICENSE",
"repoName": "create-react-app",
"refName": "main",
"path": "LICENSE",
"preferredFileType": "license",
"tabName": "MIT",
"richText": null,
"loaded": false,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": null,
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Ffacebook%2Fcreate-react-app"
}
},
{
"displayName": "SECURITY.md",
"repoName": "create-react-app",
"refName": "main",
"path": "SECURITY.md",
"preferredFileType": "security",
"tabName": "Security",
"richText": null,
"loaded": false,
"timedOut": false,
"errorMessage": null,
"headerInfo": {
"toc": null,
"siteNavLoginPath": "/login?return_to=https%3A%2F%2Fgithub.com%2Ffacebook%2Fcreate-react-app"
}
}
],
"overviewFilesProcessingTime": 0
}
},
"appPayload": {
"helpUrl": "https://docs.github.com",
"findFileWorkerPath": "/assets-cdn/worker/find-file-worker-1583894afd38.js",
"findInFileWorkerPath": "/assets-cdn/worker/find-in-file-worker-03b87d52cf57.js",
"githubDevUrl": null,
"enabled_features": {
"code_nav_ui_events": false,
"overview_shared_code_dropdown_button": false,
"react_blob_overlay": false,
"copilot_conversational_ux_embedding_update": false,
"copilot_smell_icebreaker_ux": true,
"copilot_workspace": false,
"accessible_code_button": true
}
}
}
}
{
"accept-ranges": "bytes",
"cache-control": "max-age=0, private, must-revalidate",
"content-encoding": "gzip",
"content-security-policy": "default-src 'none'; base-uri 'self'; child-src github.com/assets-cdn/worker/ github.com/webpack/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.com/assets-cdn/worker/ github.com/webpack/ github.com/assets/ gist.github.com/assets-cdn/worker/",
"content-type": "text/html; charset=utf-8",
"date": "Sat, 05 Oct 2024 03:11:20 GMT",
"etag": "8debdcdacee4f367d741a5a81972adcc",
"referrer-policy": "no-referrer-when-downgrade",
"server": "GitHub.com",
"set-cookie": "logged_in=no; Path=/; Domain=github.com; Expires=Sun, 05 Oct 2025 03:11:19 GMT; HttpOnly; Secure; SameSite=Lax",
"strict-transport-security": "max-age=31536000; includeSubdomains; preload",
"transfer-encoding": "chunked",
"vary": "X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With",
"x-content-type-options": "nosniff",
"x-frame-options": "deny",
"x-github-request-id": "BD5C:306E6F:2A55598:396840C:6700AE57",
"x-xss-protection": "0"
}