Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (25 loc) · 583 Bytes

snippet-template.md

File metadata and controls

29 lines (25 loc) · 583 Bytes
title type tags cover dateModified
Component Name
snippet
components
state
effect
image
2021-06-13 05:00:00 -0400

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.
const ComponentName = props => {
  const [state, setState] = React.useState(null);
  React.useEffect(() => {
    setState(0);
  });
  return <div>{props}</div>;
}
ReactDOM.createRoot(document.getElementById('root')).render(
  <ComponentName />
);