> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/node.js/overview-1/create-react-app.md).

# Create React App

Classic React tooling built on `react-scripts`. Builds to a static bundle that Hostinger serves directly — no server process.

**`app_type`:** `create-react-app`

> **Note:** Create React App is deprecated upstream. For new projects, prefer [React + Vite](/node.js/overview-1/react.md) — but existing CRA projects deploy fine.

## Static mode

CRA is static-only.

### `package.json`

```json
{
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build"
  },
  "dependencies": {
    "react": "^18.3.0",
    "react-dom": "^18.3.0",
    "react-scripts": "5.0.1"
  }
}
```

Hostinger detects CRA from the `react-scripts` dependency.

### hPanel settings

| Field            | Value              |
| ---------------- | ------------------ |
| Application type | `create-react-app` |
| Build script     | `build`            |
| Output directory | `build`            |
| Entry file       | —                  |

## Server mode

Not applicable. For SSR with React, use [Next.js](/node.js/overview-1/next.md) or [React Router](/node.js/overview-1/react-router.md).

## Notes

* Client-side routing (React Router in library mode) works out of the box — unknown paths fall back to `index.html`.
* Environment variables baked into the bundle must be prefixed `REACT_APP_` and set **before** the build. See [Environment Variables](/node.js/environment-variables.md).

***

*Last updated: July 22, 2026*
