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:
29
snippet-template.md
Normal file
29
snippet-template.md
Normal 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
|
||||||
|
-->
|
||||||
Reference in New Issue
Block a user