This package has been deprecated

Author message:

This package will no longer be maintained

sakina-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

sakina-react

React new typescript component file template code generator.

Install

  pnpm add -g sakina-react

Usage

Simple component

such as project files tree:

 └─ project
    └─ src
       └─ components # (in this dir exec command)

in project/src/components exec:

  sr gs AnimaList

then generate a simple react component file:

 └─ project
    └─ src
       └─ components
          └─ AnimaList.tsx
// AnimaList.tsx
import React from 'react'

export interface IAnimeListProps {}

export const AnimeList: React.FC<IAnimeListProps> = (props) => {
  return (
    <div>content</div>
  )
}

With style component

such as:

  sr g AnimeList

then generate a component with style file:

 └─ project
    └─ src
       └─ components
          └─ AnimaList
             ├─ index.tsx
             └─ index.module.scss

License

MIT

Package Sidebar

Install

npm i sakina-react

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

10 kB

Total Files

11

Last publish

Collaborators

  • fz6m