Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5738d02

Browse files
Initial commit
0 parents commit 5738d02

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
*.vsix

‎CHANGELOG.md

Lines changed: 7 additions & 0 deletions
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

Lines changed: 12 additions & 0 deletions
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

Lines changed: 31 additions & 0 deletions
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": "anand.kumar@live.in"
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

Lines changed: 30 additions & 0 deletions
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\t2ドル",
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\t2ドル",
24+
"\t);",
25+
"};",
26+
"\nexport default 1ドル;"
27+
],
28+
"description": "Stateless Functional Component"
29+
}
30+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /