Skip to content

Commit 5738d02

Browse files
committed
Initial commit
0 parents  commit 5738d02

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.vsix

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change Log
2+
All notable changes to the "ak-react-snippet" extension will be documented in this file.
3+
4+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5+
6+
## [Unreleased]
7+
- Initial release

LICENSE

Whitespace-only changes.

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## React code snippets
2+
Code Snippets which can help with writing the codes faster while developing application using react.
3+
4+
To get all the available snippets reference, start typing:
5+
> akr-
6+
7+
### All available snippets:
8+
---
9+
|Commands|Description|
10+
|--------|--------|
11+
|akr-pure-comp||
12+
|akr-sf-comp||

package.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "ak-react-snippet",
3+
"displayName": "ak-react-snippet",
4+
"description": "React snippet for accelerated code writing",
5+
"version": "0.0.1",
6+
"publisher": "AnandK",
7+
"author": {
8+
"name": "Anand Kumar",
9+
"email": "[email protected]"
10+
},
11+
"engines": {
12+
"vscode": "^1.22.0"
13+
},
14+
"categories": [
15+
"Snippets"
16+
],
17+
"contributes": {
18+
"snippets": [
19+
{
20+
"language": "javascriptreact",
21+
"path": "./snippets/snippets.json"
22+
},
23+
{
24+
"language": "javascript",
25+
"path": "./snippets/snippets.json"
26+
}
27+
]
28+
},
29+
"keywords": ["snippets", "react", "redux", "javascript", "es6"],
30+
"license": "MIT"
31+
}

snippets/snippets.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"Pure Component": {
3+
"prefix": "akr-pure-comp",
4+
"body": [
5+
"import React, { PureComponent } from \"react\"",
6+
"\nclass $1 extends PureComponent {",
7+
"\trender(){",
8+
"\t\treturn (",
9+
"\t\t\t$2",
10+
"\t\t);",
11+
"\t}",
12+
"};",
13+
"\nexport default $1;"
14+
],
15+
"description": "Pure Component"
16+
},
17+
"Stateless Functional Component": {
18+
"prefix": "akr-sf-comp",
19+
"body": [
20+
"import React from \"react\"",
21+
"\nconst $1 = () => {",
22+
"\treturn (",
23+
"\t\t$2",
24+
"\t);",
25+
"};",
26+
"\nexport default $1;"
27+
],
28+
"description": "Stateless Functional Component"
29+
}
30+
}

0 commit comments

Comments
 (0)