Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "New Component": {
- "prefix": "newComponent",
- "body": [
- "import React, { Component } from 'react';",
- "",
- "import { withStyles } from '@material-ui/core/styles';",
- "",
- "const styles = {",
- "\t//customStyle: {",
- "\t\t//position: 'absolute',",
- "\t//},",
- "};",
- "",
- "class ${1:MyComponent} extends Component {",
- "\tstate = {",
- "\t\tfoo: true,",
- "\t\tbar: false,",
- "\t};",
- "",
- "\trender() {",
- "\t}",
- "}",
- "",
- "export default withStyles(styles)(${1});",
- ],
- "description": "Starting point for a new component"
- }
- }
Add Comment
Please, Sign In to add comment