⚡
Verifiedsetup0 installs
Create React Component
Generate a new React component with TypeScript
Command
mkdir -p src/components/$NAME && echo "export function $NAME() { return <div>$NAME</div> }" > src/components/$NAME/index.tsxInstallation
Via StackShack CLI
npx stackshack install create-componentManual Installation
Copy and run the command in your terminal:
mkdir -p src/components/$NAME && echo "export function $NAME() { return <div>$NAME</div> }" > src/components/$NAME/index.tsxPrerequisites
node
Tags
#react#component#generator
Quick Actions
Stats
Installs0
Categorysetup
Statuspublished