サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
デスク環境を整える
create-react-app.dev
If you know that you won't be using service workers, or if you'd prefer to use a different approach to creating your service worker, don't create a src/service-worker.js file. The InjectManifest plugin won't be run in that case. In addition to creating your local src/service-worker.js file, it needs to be registered before it will be used. In order to opt-in to the offline-first behavior, develope
Note: this feature is available with react-scripts@0.2.3 and higher. Your project can consume variables declared in your environment as if they were declared locally in your JS files. By default you will have NODE_ENV defined for you, and any other environment variables starting with REACT_APP_. WARNING: Do not store any secrets (such as private API keys) in your React app! Environment variables a
Note: this feature is available with react-scripts@0.2.3 and higher. People often serve the front-end React app from the same host and port as their backend implementation. For example, a production setup might look like this after the app is deployed: / - static server returns index.html with React app /todos - static server returns index.html with React app /api/todos - server handles any /api/*
Create React AppSet up a modern web app by running one command. Less to LearnYou don't need to learn and configure many build tools. Instant reloads help you focus on development. When it's time to deploy, your bundles are optimized automatically. Only One DependencyYour app only needs one build dependency. We test Create React App to make sure that all of its underlying pieces work together seaml
npm run build creates a build directory with a production build of your app. Set up your favorite HTTP server so that a visitor to your site is served index.html, and requests to static paths like /static/js/main.<hash>.js are served with the contents of the /static/js/main.<hash>.js file. For more information see the production build section. Static ServerFor environments using Node, the easiest
Create React App is an officially supported way to create single-page React applications. It offers a modern build setup with no configuration. Quick 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
You can adjust various development and production settings by setting environment variables in your shell or with .env. Note: You do not need to declare REACT_APP_ before the below variables as you would with custom environment variables. By default, Create React App will open the default system browser, favoring Chrome on macOS. Specify a browser to override this behavior, or set it to none to di
Note: this feature is available with react-scripts@0.3.0 and higher. Read the migration guide to learn how to enable it in older projects! Create React App uses Jest as its test runner. To prepare for this integration, we did a major revamp of Jest so if you heard bad things about it years ago, give it another try. Jest is a Node-based runner. This means that the tests always run in a Node environ
Note: this feature is available with react-scripts@2.1.0 and higher. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. InstallationTo start a new Create React App project with TypeScript, you can run:
このページを最初にブックマークしてみませんか?
『Create React App』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く