Skip to content

Commit

Permalink
Merge pull request #9610 from marmelab/doc-remove-create-react-app
Browse files Browse the repository at this point in the history
[Doc] Remove create-react-app chapter
  • Loading branch information
djhi committed Jan 25, 2024
2 parents 90e3fab + ceaf03c commit b9b6e8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/CreateReactApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ title: "Create_React-App Integration"

# Create-React-App Integration

[Create-React-App](https://create-react-app.dev/) is a convenient way to bootstrap single-page React applications. It provides a pre-configured build setup with no configuration.
[Create-React-App](https://create-react-app.dev/) allows to bootstrap single-page React applications. It provides a pre-configured build setup with no configuration.

**Warning**: We don't recommend using Create-React-App for new applications, as it is not maintained anymore. Prefer [create-react-admin](./CreateReactAdmin.md) (based on [Vite](./Vite.md)), [Remix](./Remix.md), or [Next.js](./NextJs.md) instead.

## Setting Up Create React App

Expand Down
4 changes: 2 additions & 2 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Here is an overview of the result:

## Setting Up

React-admin uses React. We'll use [create-react-admin](./CreateReactAdmin.md) to bootstrap a new admin:
React-admin uses React. We'll use [create-react-admin](./CreateReactAdmin.md) to bootstrap a new web application:

```sh
npm init react-admin test-admin
Expand All @@ -38,7 +38,7 @@ You should be up and running with an empty React admin application on port 5173:

[![Empty Admin](./img/tutorial_empty.png)](./img/tutorial_empty.png)

**Tip**: Although this tutorial uses [Vite](https://vitejs.dev/) with [TypeScript](https://www.typescriptlang.org/), you can use react-admin with JavaScript if you prefer. Also, you can use [Next.js](./NextJs.md), [Remix](./Remix.md), [create-react-app](./CreateReactApp.md), or any other React framework to create your admin app. React-admin is framework-agnostic.
**Tip**: The `create-react-admin` script creates a single-page application powered by [Vite](https://vitejs.dev/) and [TypeScript](https://www.typescriptlang.org/). You can also use react-admin with JavaScript if you prefer. Additionally, you can use [Next.js](./NextJs.md), [Remix](./Remix.md), or any other React framework to create your react-admin app. React-admin is framework-agnostic.

Let's take a look at the generated code. The main entry point is `index.tsx`, which renders the `App` component in the DOM:

Expand Down
1 change: 0 additions & 1 deletion docs/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<li {% if page.path == 'Vite.md' %} class="active beginner" {% else %} class="beginner" {% endif %}><a class="nav-link" href="./Vite.html">Vite</a></li>
<li {% if page.path == 'NextJs.md' %} class="active" {% endif %}><a class="nav-link" href="./NextJs.html">Next.js</a></li>
<li {% if page.path == 'Remix.md' %} class="active" {% endif %}><a class="nav-link" href="./Remix.html">Remix</a></li>
<li {% if page.path == 'CreateReactApp.md' %} class="active" {% endif %}><a class="nav-link" href="./CreateReactApp.html">Create React App</a></li>
<li {% if page.path == 'Community.md' %} class="active beginner" {% else %} class="beginner" {% endif %}><a class="nav-link" href="./Community.html">Community</a></li>
<li {% if page.path == 'Upgrade.md' %} class="active" {% endif %}><a class="nav-link" href="./Upgrade.html">Upgrading to v4</a></li>
</ul>
Expand Down

0 comments on commit b9b6e8b

Please sign in to comment.