The easiest way to create a component is with the React CLI. You can also create a component manually.
To create a component using the React CLI:
generate-react-cli component <component-name>
command, where
<component-name>
is the name of your new component.
generate-react-cli component <component-name>
By default, this command creates the following: <component-name>
.component<component-name>
.component.tsx<component-name>
.component.css<component-name>
.component.spec.ts
<component-name>
is the name of your component.