|
|
|
@ -15,7 +15,7 @@ const Counter = () => { |
|
|
|
); |
|
|
|
); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const List = () => { |
|
|
|
const ShoppingList = () => { |
|
|
|
const inputRef = useRef(); |
|
|
|
const inputRef = useRef(); |
|
|
|
const [items, dispatch] = useReducer((state, action) => { |
|
|
|
const [items, dispatch] = useReducer((state, action) => { |
|
|
|
switch ( |
|
|
|
switch ( |
|
|
|
|