-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathES7Snippets.js
More file actions
67 lines (43 loc) · 1.34 KB
/
ES7Snippets.js
File metadata and controls
67 lines (43 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// SNIPPET 1
// rfce - creates a React Functional Component with ES7 module system (ES7+ React/Redux/React-Native snippets)
// import React from 'react'
// function ES7Snippets() {
// return (
// <div>ES7Snippets</div>
// )
// }
// export default ES7Snippets
// SNIPPET 2
// rafce - Creates a React Arrow Function Component with ES7 module system (ES7+ React/Redux/React-Native snippets)
// import React from 'react'
// const ES7Snippets = () => {
// return (
// <div>ES7Snippets</div>
// )
// }
// export default ES7Snippets
// SNIPPET 3
// rce - Creates a React component class with ES7 module system (ES7+ React/Redux/React-Native snippets)
// import React, { Component } from 'react'
// export class ES7Snippets extends Component {
// render() {
// return (
// <div>ES7Snippets</div>
// )
// }
// }
// export default ES7Snippets
// SNIPPET 4
// rconst - Adds a default constructor for it('', () => {})the class that contains props as arguments (ES7+ React/Redux/React-Native snippets)
// constructor(props) {
// super(props)
// this.state = {
// first
// }
// }
// SNIPPET 5
// clg - Displays a message in the console (ES7+ React/Redux/React-Native snippets)
// console.log(clg)
// SNIPPET 6
// clo - Logs property with name. (ES7+ React/Redux/React-Native snippets)
// console.log('first', first)