An open API service indexing awesome lists of open source software.

https://github.com/kristiyan-velkov/react-18-snippets

React 18 snippets for functional components you will actually use
https://github.com/kristiyan-velkov/react-18-snippets

Last synced: 28 days ago
JSON representation

React 18 snippets for functional components you will actually use

Awesome Lists containing this project

README

        

# React 18 Snippets

All avalible React 18 snippets you need.

![snippets in action](images/kv-snippets.gif)

---

## Snippets

| Snippet | Renders |
| ------------------ | ------------------------------------- |
| `ri` | Import React |
| `ridom Import` | ReactDOM |
| `riustate` | Import React, { useState } |
| `riustateueffect` | Import React, { useState, useEffect } |
| `riprototype` | Import PropTypes |
| `rfc` | Functional Component |
| `rafc` | Arrow Functional Component |
| `rcustomhook` | Custom Hook |
| `racustomhook` | Custom Hook (Arrow) |
| `rueffect` | useEffect Hook |
| `rustate` | useState Hook |
| `rucontext` | useContext Hook |
| `ruref` | useRef Hook |
| `rumemo` | useMemo Hook |
| `rucallback` | useCallback Hook |
| `rudebugvalue` | useDebugValue Hook |
| `rudeferredvalue` | useDeferredValue Hook |
| `ruid` | useId Hook |
| `rulayouteffect` | useLayoutEffect Hook |
| `rureducer` | useReducer Hook |
| `rutransition` | useTransition Hook |
| `rrender` | render |
| `rfragment` | Fragment |
| `rfragmentkey` | Fragment with key prop |
| `rprofiler` | Profiler |
| `rstrict` | StrictMode |
| `rsuspense` | Suspense |
| `rforwardref` | forwardRef |
| `rlazy` | lazy |
| `rstartTransition` | startTransition |
| `rmemo` | memo |
| `rroot` | Create Root |
| `rhandle` | handle function |
| `rahandle` | handle arrow function |
| `rcontextprovider` | Context Provider |

---


Morewell logo

## Developer Support:❤️

- If you saw some issue/bug 🐛 related to the specific release version.
- If you want some new feature or change to be added/implemented. 😊

Please, contact the creator of the **React 18 Snippets**, so he will be able to fix or improve it:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c2zcidciydse9dofz4fs.png)

[![linkedin](https://img.shields.io/badge/linkedin-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/in/kristiyan-velkov-763130b3/)

[![portfolio](https://img.shields.io/badge/my_portfolio-000?style=for-the-badge&logo=ko-fi&logoColor=white)](https://github.com/christiyan14)

## Support my work

If you like my work and want to support me to work hard, please donate via:

| Revolut | Buy me a coffee |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Krisityan Velkov - Revolut | |

Thanks a bunch for supporting me! It means a LOT 😍

---