Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/destinio/destinio-vscode

The then I use based on An Old Hope and snippets I use
https://github.com/destinio/destinio-vscode

vscode vscode-extension vscode-snippets vscode-theme

Last synced: 9 days ago
JSON representation

The then I use based on An Old Hope and snippets I use

Awesome Lists containing this project

README

        

# Snippets by Destinio

## Theme credit goes to [@DustinSanders](https://github.com/dustinsanders) I have made minor changes to his [An Old Hope](https://github.com/dustinsanders/an-old-hope-theme-vscode) theme

## javascript

|Prefix | Method|
|-:|:-|
|`cl→`|`console.log()`|
|`dcc→`|`console.log(CLIPBOARD)`|
|`con→`|`const $1 = $0`|

## React

### `fcp` - Functional component with PorpTypes

```javascript
import React from 'react'
import PropTypes from 'prop-types'

export default function FileName(props) {
return (


$0

)
}

FileName.propTypes = {

}
```

### `dri` - Index ReactDOM render

```javascript
import React from 'react'
import ReactDOM from 'react-dom'

import 'index.css'

import App from './components/App'

ReactDOM.render(, document.getElementById('app'))
```

### `dpt` - PropTypes block

```javascript
FileName.propTypes = {
$0
}
```

### `due` - useEffect

```javascript
useEffect(() => {
$0
}, [])
```