Skip to content

Commit

Permalink
fixed imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jan 13, 2024
1 parent fc7890a commit 60c15dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions week-6/1-use-memo/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './App.css'
import { Assignment1 } from './components/Assignment2'
import { Assignment2 } from './components/Assignment1'
import Assignment3 from './components/Assignment3'
import { Assignment1 } from './components/Assignment1'
import { Assignment2 } from './components/Assignment2'
import { Assignment3 } from './components/Assignment3'

function App() {
return (
Expand Down
4 changes: 1 addition & 3 deletions week-6/1-use-memo/src/components/Assignment3.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState, useMemo } from 'react';
// You have been given a list of items you shopped from the grocery store
// You need to calculate the total amount of money you spent

const Assignment3 = () => {
export const Assignment3 = () => {
const [items, setItems] = useState([
{ name: 'Chocolates', value: 10 },
{ name: 'Chips', value: 20 },
Expand All @@ -25,5 +25,3 @@ const Assignment3 = () => {
</div>
);
};

export default Assignment3;

0 comments on commit 60c15dc

Please sign in to comment.