{"id":18928880,"url":"https://github.com/sharafdin/better-react-js-code-snippet-extension","last_synced_at":"2025-04-15T14:31:49.775Z","repository":{"id":180970280,"uuid":"666012160","full_name":"sharafdin/better-react-js-code-snippet-extension","owner":"sharafdin","description":"Simply ReactJS Code Snippet.","archived":false,"fork":false,"pushed_at":"2024-02-14T15:06:01.000Z","size":36,"stargazers_count":20,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-02-15T15:57:49.789Z","etag":null,"topics":["code-snippets","json","reactjs","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=Sharafdin.better-reactjs-code-snippet","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sharafdin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-07-13T13:57:28.000Z","updated_at":"2024-02-15T15:57:49.789Z","dependencies_parsed_at":null,"dependency_job_id":"a5045ebc-3b04-47be-bd2f-92be92bf0398","html_url":"https://github.com/sharafdin/better-react-js-code-snippet-extension","commit_stats":null,"previous_names":["sharafdin/better-react-js-code-snippet-extension"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharafdin%2Fbetter-react-js-code-snippet-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharafdin%2Fbetter-react-js-code-snippet-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharafdin%2Fbetter-react-js-code-snippet-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharafdin%2Fbetter-react-js-code-snippet-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharafdin","download_url":"https://codeload.github.com/sharafdin/better-react-js-code-snippet-extension/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223676697,"owners_count":17184310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-snippets","json","reactjs","vscode-extension"],"created_at":"2024-11-08T11:28:31.990Z","updated_at":"2025-04-15T14:31:49.769Z","avatar_url":"https://github.com/sharafdin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# This extension is no longer maintained and has been discontinued.\n\n# Better React JS Code Snippet\n\nThis extension helps you to write ReactJs 10x faster.\n\n## Supported languages (file extensions)\n\n- JavaScript (.js)\n- ReactJS (.jsx)\n\n## How to use this extension?\nWell, Create js or jsx file and start writing your code by using this extension, Simply writing the prefix you want, for example: \u003cbr /\u003e\nTo generate a function component simply write **rfc** and enter or tab it will generate this:\n\n```javascript\nimport React from 'react';\n\nfunction Name() {\n  return (\n    \u003cdiv\u003e\n      \u003cdiv\u003eName\u003c/div\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default HelloWorld;\n```\n\n\n## The methods are available for now\n\n|  Prefix | Method                                              |\n| ------: | --------------------------------------------------- |\n|  `ir` | `Imports react`                   |\n|  `irc` | `Imports React, { Component }`                                   |\n|  `irrd` | `Imports react and ReactDOM`       |\n|  `ird` | `Imports ReactDOM`       |\n|  `irs` | `Imports React \u0026 { useState }`                   |\n|  `irbh` | `Imports React \u0026 the basic hooks` |\n|  `ibh` | `Imports the basic hooks { useState, useEffect, useContext }`                         |\n|  `ipt` | `import PropTypes from 'prop-types';`       |\n|  `ipc` | `Imports React \u0026 { PureComponent }` |\n|  `rcc` | `Creates a React component class with ES6 module system`       |\n|  `rcpc` | `React Class Pure Component`                    |\n|  `cpc` | `Adds a default constructor for the class that contains props and context as arguments`                      |\n|  `rrdc` | `Creates a React component class connected to redux with dispatch`                  |\n|  `rafc` | `Creates a React arrow function component`                |\n|  `rafcp` | `Creates a stateless React component as a named function with PropTypes`                |\n|  `rfc` | `Creates a React function component`                |\n|  `afsc` | `Arrow Function Syntax Component`                |\n|  `fsc` | `Function Syntax Component`                |\n|  `ueh` | `useEffect Hook`              |\n|  `ush` | `Declare a state variable using the useState Hook`              |\n|  `uch` | `Declare a context variable using the useContext Hook`              |\n| `urh` | `Declare a ref variable using the useRef Hook`                                   |\n| `urdh` | `Declare a reducer variable using the useReducer Hook`                                   |\n| `umh` | `Declare a memo variable using the useMemo Hook`                                   |\n| `uth` | `Declare a transition variable using the useTransition Hook`                                   |\n| `ren` | `Render`                                   |\n| `cdm` | `componentDidMount`                                   |\n| `cwm` | `componentWillMount`                                   |\n| `cwrp` | `componentWillReceiveProps`                                   |\n| `gds` | `getDerivedStateFromProps`                                   |\n| `scu` | `shouldComponentUpdate`                                   |\n| `cwu` | `componentWillUpdate`                                   |\n| `cdu` | `componentDidUpdate`                                   |\n| `cwun` | `componentWillUnmount`                                   |\n| `cdc` | `componentDidCatch`                                   |\n| `gsbu` | `getSnapshotBeforeUpdate`                                   |\n| `sst` | `Performs a shallow merge of nextState into current state`                                   |\n|                                |\n\n\n### `Keep Coding`\n\n```javascript\nimport React from 'react';\n\nclass App extends React.Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003ch1\u003eHappy coding!🤓\u003c/h1\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n\n### Developers\n\nThis extension developed by [Sharafdin](https://www.sharafdin.com) \u003cbr /\u003e\n[GitHub](https://github.com/sharafdin) |\n[Twitter](https://twitter.com/isasharafdin) |\n[LinkedIn](https://www.linkedin.com/company/sharafdin/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharafdin%2Fbetter-react-js-code-snippet-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharafdin%2Fbetter-react-js-code-snippet-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharafdin%2Fbetter-react-js-code-snippet-extension/lists"}