Skip to content

Commit 5f792e1

Browse files
fix: missing forward flag & wrong generator name (api-platform#1636)
1 parent f2130bb commit 5f792e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

create-client/react.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ It is designed to generate code that works seamlessly with [Facebook's Create Re
1616
Bootstrap a React application:
1717

1818
```console
19-
npm init react-app --template typescript my-app
19+
npm init react-app -- --template typescript my-app
2020
cd my-app
2121
```
2222

@@ -41,7 +41,7 @@ npm run start
4141
## Generating a Web App
4242

4343
```console
44-
npm init @api-platform/client https://demo.api-platform.com src/ -- --generator next --resource book
44+
npm init @api-platform/client https://demo.api-platform.com src/ -- --generator react --resource book
4545
```
4646

4747
Replace the URL by the entrypoint of your Hydra-enabled API.

0 commit comments

Comments
 (0)