Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 819 Bytes

snippet-template.md

File metadata and controls

39 lines (30 loc) · 819 Bytes

ComponentName

Explain briefly what the snippet does.

  • Explain briefly how the snippet works.
  • Use bullet points for your snippet's explanation.
  • Try to explain everything briefly but clearly.
function ComponentName(props) {
  const [state, setState] = React.useState(null);
  React.useEffect(() => {
    setState(0);
  });
  return <div>{props}</div>;
}
ReactDOM.render(<ComponentName />, document.getElementById('root'));

Notes:

  • Things to remember when using this
  • Other options that might be less appealing or have lower compatibility
  • Common mistakes and issues