pbclife / gitopener.vercel.app

Git Opener is a learning web app if you are looking forward to get started with open source then you are in right place. Please read contribution guideline.
https://gitopener.vercel.app
MIT License
50 stars 32 forks source link

Refactor: Optimise code base #36

Closed sboy99 closed 1 year ago

sboy99 commented 1 year ago

Changes Proposed

Aadarsh805 commented 1 year ago

All the files inside components folder need this change?

Aadarsh805 commented 1 year ago

These are gonna be huge changes, lots of imports will need changes so let's do it ahead of time, otherwise, it'll become much of a huge work later

Aadarsh805 commented 1 year ago
"Typescript React Function Component": {
    "prefix": "fc",
    "body": [
      "import { FC } from 'react'",
      "",
      "interface ${TM_FILENAME_BASE}Props {",
      "  $1",
      "}",
      "",
      "const $TM_FILENAME_BASE: FC<${TM_FILENAME_BASE}Props> = ({$2}) => {",
      "  return <div>$TM_FILENAME_BASE</div>",
      "}",
      "",
      "export default $TM_FILENAME_BASE"
    ],
    "description": "Typescript React Function Component"
  },

Here's a vscode snippet to crate typescript FC components using emmet

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: