Skip to main content
InterviewHubPRO
Section Overview
Q402

Question 402 of 407

Part 9: React Hooks Deep Dive (262 - 316)

99%
React Core & Hooks (407 Qs)•Part 9: React Hooks Deep Dive (262 - 316)

What is react scripts?

junior LevelCode ExampleHooks

The react-scripts package is a set of scripts from the create-react-app starter pack which helps you kick off projects without configuring. The react-scripts start command sets up the development environment and starts a server, as well as hot module reloading.

Code Example

json
{
  "name": "enterprise-react-app",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "react-scripts": "5.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  }
}