mirror of
https://github.com/nature-of-code/noc-book-2
synced 2024-11-17 07:49:05 +01:00
fit code style
This commit is contained in:
parent
7218496370
commit
4d8da59803
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FiPlay, FiPause, FiRefreshCw, FiExternalLink } from 'react-icons/fi';
|
import { FiPlay, FiPause, FiRefreshCw, FiExternalLink } from 'react-icons/fi';
|
||||||
|
|
||||||
export default function Example(data) {
|
const Example = (data) => {
|
||||||
const ref = React.useRef(null);
|
const ref = React.useRef(null);
|
||||||
const [width, setWidth] = React.useState(0);
|
const [width, setWidth] = React.useState(0);
|
||||||
const [isLooping, setIsLooping] = React.useState(true);
|
const [isLooping, setIsLooping] = React.useState(true);
|
||||||
|
@ -86,4 +86,6 @@ export default function Example(data) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
};
|
||||||
|
|
||||||
|
export default Example;
|
||||||
|
|
Loading…
Reference in a new issue