We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a52004d commit 4e16485Copy full SHA for 4e16485
src/App.js
@@ -4,7 +4,7 @@ import Tags from './tags/Tags';
4
5
const App = () => {
6
const [save, setSave] = useState(false);
7
-
+
8
useEffect(() => {
9
setTimeout(() => {
10
setSave(true);
@@ -13,7 +13,7 @@ const App = () => {
13
14
return (
15
<div className='App'>
16
- <Tags timer={save} />
+ <Tags save={save} />
17
</div>
18
);
19
};
src/tags/Tags.js
@@ -12,7 +12,6 @@ const Tags = ({ save }) => {
12
const addInput = useRef();
- // should only fetch data when component is mounted
setTags(tagsFromJson);
addInput.current.focus();
}, []);
0 commit comments