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.tsx

Installation

Via StackShack CLI

npx stackshack install create-component

Manual 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.tsx

Prerequisites

node

Tags

#react#component#generator

Quick Actions

Stats

Installs0
Categorysetup
Statuspublished

Need Help?

Check our documentation or reach out to the community.

Get Support

More setup Commands