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.
This commit is contained in:
Angelos Chalaris
2018-10-09 19:12:21 +03:00
committed by GitHub
parent b384a17435
commit eb9a2dfaef

29
snippet-template.md Normal file
View File

@ -0,0 +1,29 @@
### componentName
Explain briefly what the snippet does.
Explain briefly how the snippet works.
```jsx
function componentName(props) {
return <div>{props}</div>;
};
```
<!-- OR -->
```jsx
class componentName extends React.Component {
constructor(props){}
render(){
return <div>{props}</div>;
}
}
```
<!-- tags: (separate each by a comma) -->
<!-- expertise: (0,1,2) -->
<!-- Expertise levels:
0: beginner
1: intermediate
2: advanced
-->