## Examples

{% tabs %}
{% tab label="Simple Component" %}

Create a component named `my-component` under the `libs/ui` project:

```shell
nx g @nx/react:component libs/ui/src/my-component
```

{% /tab %}

{% tab label="Standalone Component" %}

Create a class component named `my-component` under the `libs/ui` project:

```shell
nx g @nx/react:component libs/ui/src/my-component --classComponent
```

{% /tab %}
