Skip to content

Commit 29a13af

Browse files
committed
fix: replace non-working JSX snippet example with working ones
The plain JavaScript code snippet doesn't work in Emmet. Replaced with proper Emmet abbreviation snippets for JSX components.
1 parent fcd75ff commit 29a13af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.emmet/snippets.example.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727

2828
"jsx": {
2929
"snippets": {
30-
"rfc": "import React from 'react';\n\nconst Component = () => {\n return <div></div>;\n};\n\nexport default Component;"
30+
"card": "div.card>div.card-header>h3{Card Title}^div.card-body>p{Card content}",
31+
"modal": "div.modal>div.modal-content>div.modal-header>h2{Modal}^div.modal-body>p{Content}^div.modal-footer>button{Close}",
32+
"form": "form>div.form-group>label{Name}+input[type=text name=username]^button[type=submit]{Submit}"
3133
}
3234
}
3335
}

0 commit comments

Comments
 (0)