-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7326a8c
commit bceb938
Showing
4 changed files
with
92 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,71 @@ | ||
# Hello | ||
|
||
| Prefix | Description | | ||
|---|---| | ||
| **Basic Imports** | | | ||
| `imr` | Import React | | ||
| `imrc` | Import React and Component | | ||
| `imrd` | Import ReactDOM | | ||
| `imrs` | Import React and useState | | ||
| `imrse` | Import React, useState, and useEffect | | ||
| `impt` | Import PropTypes | | ||
| `impc` | Import React and PureComponent | | ||
| **Components** | | | ||
| `cc` | Class Component | | ||
| `ffc` | Function Component | | ||
| `afc` | Arrow Function Component | | ||
| `rmc` | React.memo Component | | ||
| `tsrc` | TypeScript React Component | | ||
| **Hooks** | | | ||
| `ush` | useState Hook | | ||
| `ueh` | useEffect Hook | | ||
| `uch` | useContext Hook | | ||
| `umh` | useMemo Hook | | ||
| `uch` | useCallback Hook | | ||
| `urh` | useReducer Hook | | ||
| `urefh` | useRef Hook | | ||
| `uih` | useImperativeHandle Hook | | ||
| `uleh` | useLayoutEffect Hook | | ||
| **Custom Hooks** | | | ||
| `cuh` | Custom Hook | | ||
| `cuht` | Custom Hook with TypeScript | | ||
| `crht` | Custom React Hook with TypeScript | | ||
| `rceh` | React Custom Event Hook | | ||
| **Props and Types** | | | ||
| `pt` | PropTypes declaration | | ||
| `dp` | defaultProps declaration | | ||
| **Styling** | | | ||
| `sc` | Styled component | | ||
| `thp` | Theme Provider | | ||
| **State Management** | | | ||
| `rac` | Redux Action Creator | | ||
| `rr` | Redux Reducer | | ||
| `cp` | Context Provider | | ||
| `rctx` | React Context with TypeScript | | ||
| `rca` | Recoil Atom | | ||
| `rcs` | Recoil Selector | | ||
| **Routing** | | | ||
| `rrs` | React Router Setup | | ||
| **Testing** | | | ||
| `rtl` | React Testing Library Test | | ||
| **Next.js** | | | ||
| `nxp` | Next.js Page | | ||
| **React Native** | | | ||
| `rnc` | React Native Component | | ||
| **Forms** | | | ||
| `frm` | Formik Form | | ||
| **Error Handling** | | | ||
| `eb` | Error Boundary | | ||
| `reb` | React Error Boundary with Fallback UI | | ||
| **Performance Optimization** | | | ||
| `hoc` | Higher-Order Component | | ||
| `rfr` | React.forwardRef | | ||
| **Data Fetching** | | | ||
| `gql` | GraphQL Query | | ||
| `rqh` | React Query Hook | | ||
| `apif` | API Fetch | | ||
| **Miscellaneous** | | | ||
| `sbst` | Storybook Story | | ||
| `rpt` | React Portal | | ||
| `rlz` | React.lazy with Suspense | | ||
|
||
Use these prefixes in your code editor to quickly generate the corresponding React code snippets. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.