Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 19, 2023 via pnpm

react-scripts 5.0.1

Configuration and scripts for Create React App.
Package summary
Share
0
issues
0
licenses
Package created
18 Jul 2016
Version published
12 Apr 2022
Maintainers
4
Total deps
0
Direct deps
0
License
MIT

Issues

0
This package has no issues

Frequently Asked Questions

What does react-scripts do?

React-Scripts is an integral package for the Create-React-App command line tool. It equips the tool with scripts and configuration settings that are instrumental in creating new React applications. Notably, react-scripts abstracts the complexities of developing and setting up a React application, enabling developers to create apps without directly configuring tools like Webpack and Babel.

How do you use react-scripts?

Utilizing react-scripts is straightforward. When you use Create-React-App to set up a new project, react-scripts is installed and added to your package.json file under "scripts." Here's a simple illustration:

  1. Install Create-React-App globally and set up a new project as shown below:
npx create-react-app my-app
  1. After setting up the project, navigate into the directory of your new project:
cd my-app
  1. In the package.json file, check the "scripts" section. You'll observe that react-scripts is configured for starting, building, and testing your application:
"scripts": {
  "start": "react-scripts start",
  "build": "react-scripts build",
  "test": "react-scripts test",
  "eject": "react-scripts eject"
}
  1. To start the app, use npm (or yarn) to run the start script:
npm start

Doing this runs the app in development mode, where react-scripts start executes.

Where are the react-scripts docs?

You can find comprehensive documentation about React-Scripts in the user guide and getting started sections of the Create-React-App website. This documentation will provide you with in-depth details on starting, developing, testing, and building applications using react-scripts. Linked resources include the Getting Started Guide and the User Guide.