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.
30 lines
457 B
Markdown
30 lines
457 B
Markdown
### 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
|
|
-->
|