generate-react-cli 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/readme.md +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generate-react-cli",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "A simple React CLI to generate components instantly and more.",
|
|
5
5
|
"repository": "https://github.com/arminbro/generate-react-cli",
|
|
6
6
|
"bugs": "https://github.com/arminbro/generate-react-cli/issues",
|
package/readme.md
CHANGED
|
@@ -411,7 +411,7 @@ GRC uses the DaVinci language model, so you can check out their pricing here: ht
|
|
|
411
411
|
Let's generate our first component using OpenAI:
|
|
412
412
|
|
|
413
413
|
```sh
|
|
414
|
-
npx generate-react-cli
|
|
414
|
+
npx generate-react-cli c Counter -d "Create a counter component that increments by one when I click on the increment button"
|
|
415
415
|
```
|
|
416
416
|
|
|
417
417
|
GRC should have created a Counter component that looks something like this 🤯:
|
|
@@ -444,7 +444,7 @@ OpenAI will do its best to generate the component following the instructions pro
|
|
|
444
444
|
Okay, let's try another one.
|
|
445
445
|
|
|
446
446
|
```sh
|
|
447
|
-
npx generate-react-cli
|
|
447
|
+
npx generate-react-cli c GlobalNav -d "Create a navbar component with 1 logo named 'GRC' and 3 links: 'Home', 'About', 'Contact'"
|
|
448
448
|
```
|
|
449
449
|
|
|
450
450
|
and here's the output in src/components/GlobalNav/GlobalNav.js:
|