Skip to content

Commit 4e16485

Browse files
author
Ruben Mateus
committed
update prop
1 parent a52004d commit 4e16485

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Tags from './tags/Tags';
44

55
const App = () => {
66
const [save, setSave] = useState(false);
7-
7+
88
useEffect(() => {
99
setTimeout(() => {
1010
setSave(true);
@@ -13,7 +13,7 @@ const App = () => {
1313

1414
return (
1515
<div className='App'>
16-
<Tags timer={save} />
16+
<Tags save={save} />
1717
</div>
1818
);
1919
};

src/tags/Tags.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const Tags = ({ save }) => {
1212
const addInput = useRef();
1313

1414
useEffect(() => {
15-
// should only fetch data when component is mounted
1615
setTags(tagsFromJson);
1716
addInput.current.focus();
1817
}, []);

0 commit comments

Comments
 (0)