Guest User

Untitled

a guest
Oct 16th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. {
  2. "New Component": {
  3. "prefix": "newComponent",
  4. "body": [
  5. "import React, { Component } from 'react';",
  6. "",
  7. "import { withStyles } from '@material-ui/core/styles';",
  8. "",
  9. "const styles = {",
  10. "\t//customStyle: {",
  11. "\t\t//position: 'absolute',",
  12. "\t//},",
  13. "};",
  14. "",
  15. "class ${1:MyComponent} extends Component {",
  16. "\tstate = {",
  17. "\t\tfoo: true,",
  18. "\t\tbar: false,",
  19. "\t};",
  20. "",
  21. "\trender() {",
  22. "\t}",
  23. "}",
  24. "",
  25. "export default withStyles(styles)(${1});",
  26. ],
  27. "description": "Starting point for a new component"
  28. }
  29. }
Add Comment
Please, Sign In to add comment