React Component Generator
This skill automates the creation of a React component and its test file, ensuring consistency and test coverage.
Usage
To generate a component, run the generate_component.cjs script with the component name.
bash
node .gemini/skills/react-component-gen/scripts/generate_component.cjs <ComponentName>
You can also specify a path relative to components/ (e.g., forms/TextInput).
What it does
- •Creates
<ComponentName>.tsxincomponents/(or specified subdirectory). - •Creates
<ComponentName>.test.tsxin the same directory. - •Includes basic boilerplate code and a smoke test.