Skip to content

Latest commit

 

History

History
166 lines (84 loc) · 3.01 KB

snippets.md

File metadata and controls

166 lines (84 loc) · 3.01 KB

First of all, you need to understand that we don't provide a snippet for importing your package like any other VSCode snippets extention.

imrimport React from 'react'

👆 We don't do it here.

We encourage you to use the built-in auto import from VSCode.
Use Ctrl+Space on your variable and a popup will appear.

VSCode built-in auto import

If auto import doesn't appear, open command palette (Ctrl+Shift+P) and select restart TS server.

Restart TS server


Okay, here we go...

All Available Snippets

Vanilla JavaScript

Console

Console

setTimeout & setInterval

setTimeout & setInterval

Arrow Function

Arrow Function

JSON.stringify & JSON.parse

JSON.stringify & JSON.parse

typeof

typeof

React

Component (Regular Function)

TODO

Component (Arrow Function)

TODO

React Hooks

TODO

JSX Wrapper

TODO

React Lazy

TODO

React dangerouslySetInnerHTML

TODO

Next.js

Next.js getServerSideProps, getStaticProps, getStaticPaths

Next.js snippet

Next.js Custom Document

TODO

Next.js Router

TODO

Next.js Dynamic Import

TODO

React Native

React Native Component

TODO

React Router

Create Router

TODO

React Router Hooks

TODO

React Query

React Query

TODO

SWR

SWR Hook

TODO

Redux

Redux Store

TODO

Redux Slice

TODO

Redux Hooks

TODO

Testing

Test Block

TODO

Before & After

TODO

React Hook Form

React Hook Form

TODO

Zustand

Zustand Config

TODO

Zustand Hooks

TODO

Emotion CSS

Emotion CSS in React Component

TODO

TypeScript

Generate Types/Interface from Clipboard

Generate-from-clipboard snippet