Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Every space inside `{ }` and `( )` means that this is pushed into next line :)
| `imrm→` | `import React, { memo } from 'react'` |
| `imrmp→` | `import React, { memo } from 'react' & import PropTypes from 'prop-types'` |
| `impt→` | `import PropTypes from 'prop-types'` |
| `imrr→` | `import { BrowserRouter as Router, Route, Link } from 'react-router-dom'` |
| `redux→` | `import { connect } from 'react-redux'` |
| `rconst→` | `constructor(props) with this.state` |
| `rconc→` | `constructor(props, context) with this.state` |
Expand Down
4 changes: 4 additions & 0 deletions snippets/snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@
"prefix": "impt",
"body": ["import PropTypes from 'prop-types'", ""]
},
"import React Router": {
"prefix": "imrr",
"body": ["import { BrowserRouter as Router, Route, Link } from 'react-router-dom'", ""]
},
"import redux statement": {
"prefix": "redux",
"body": ["import { connect } from 'react-redux'", ""]
Expand Down