Skip to content

Commit 60c15dc

Browse files
committed
fixed imports
1 parent fc7890a commit 60c15dc

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

week-6/1-use-memo/src/App.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './App.css'
2-
import { Assignment1 } from './components/Assignment2'
3-
import { Assignment2 } from './components/Assignment1'
4-
import Assignment3 from './components/Assignment3'
2+
import { Assignment1 } from './components/Assignment1'
3+
import { Assignment2 } from './components/Assignment2'
4+
import { Assignment3 } from './components/Assignment3'
55

66
function App() {
77
return (

week-6/1-use-memo/src/components/Assignment3.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useMemo } from 'react';
22
// You have been given a list of items you shopped from the grocery store
33
// You need to calculate the total amount of money you spent
44

5-
const Assignment3 = () => {
5+
export const Assignment3 = () => {
66
const [items, setItems] = useState([
77
{ name: 'Chocolates', value: 10 },
88
{ name: 'Chips', value: 20 },
@@ -25,5 +25,3 @@ const Assignment3 = () => {
2525
</div>
2626
);
2727
};
28-
29-
export default Assignment3;

0 commit comments

Comments
 (0)