From eb9a2dfaef2d56f1ce1bcec1af15c875bb079bf7 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 9 Oct 2018 19:12:21 +0300 Subject: [PATCH] Snippet template proposal Resolves #4. This is the snippet template that we have sort of decided on over the last couple of weeks. Please comment below so we can conclude on a format and start working on #1. --- snippet-template.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 snippet-template.md diff --git a/snippet-template.md b/snippet-template.md new file mode 100644 index 000000000..2559cbc9f --- /dev/null +++ b/snippet-template.md @@ -0,0 +1,29 @@ +### componentName + +Explain briefly what the snippet does. + +Explain briefly how the snippet works. + +```jsx +function componentName(props) { + return
{props}
; +}; +``` + +```jsx +class componentName extends React.Component { + constructor(props){} + render(){ + return
{props}
; + } +} +``` + + + + +