@ -10,7 +10,7 @@ Explain briefly what the snippet does.
|
|||||||
- Try to explain everything briefly but clearly.
|
- Try to explain everything briefly but clearly.
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
function ComponentName(props) {
|
const ComponentName = props => {
|
||||||
const [state, setState] = React.useState(null);
|
const [state, setState] = React.useState(null);
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
setState(0);
|
setState(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user