{"repo":"mlaursen/vim-react-snippets","free":true,"listed":false,"github":"https://github.com/mlaursen/vim-react-snippets","clone":"git clone https://github.com/mlaursen/vim-react-snippets.git","description":"Useful snippets for developing in React (Javascript and Typescript)","language":"Lua","stars":262,"topics":["snippets","react","proptypes","javascript","typescript"],"license":"Apache-2.0","category":"ui-components","readme_excerpt":"vim-react-snippets A collection of common Javascript and Typescript vim snippets for developing [React] applications. The snippets within this repo rely on [LuaSnip] as the snippet provider. Table of Contents - vim-react-snippets - Table of Contents - Typescript Example - Previewing Snippets - Using Log Helpers - Writing Tests - Installation - Cheatsheet - Function Components - Function Component Export - Function Component Default Export - Simple Function Component Export - Simple Function Component Default Export - Forwarded Function Component Export - Forwarded Function Component Default Export - Server Components - Server Component Export - Server Component Default Export - Simple Server Component Export - Simple Server Component Default Export - Hooks and Effects - useState - useReducer - useEffect - useContext ✨ - useCallback ✨ - useMemo ✨ - useMemo return (manual return required) ✨ - useRef ✨ - useId ✨ - Create Context Provider - Redux - useAppDispatch ✨ - useSelector ✨ - useAppSelector ✨ - Common - Destructured Const - Export Destructured Const - if - else - switch - for loop - reduce - noop - Readonly - interface - optional property - Typeparam Extends - Typeparam Extends htmlElement - JSDoc/TSDoc - Block Comment - @example - @defaultValue - @since - Logging - Importing - Exporting - NODE ENV - Tests - Describe a test - it should - it should (async) - Test Expect - Test Queries ✨ - React Testing - React Test File - React Test File (ESM) - Global Test File - Global Te","default_branch":null,"files":null,"tree":[],"storefront":"/r/mlaursen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mlaursen/vim-react-snippets/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}