Hi Guys, I’m currently working through the project for Redux API. It’s been really challenging, as I still haven’t grasped React as yet, but I’m hoping someone could look through my codebase to see what I am missing? The website is not rendering, so I think I have missed something… I appreciate any help!
App.js
import React from 'react';
import { Inventory } from '../features/inventory/Inventory.js';
import { CurrencyFilter } from '../features/currencyFilter/CurrencyFilter.js';
// Import the Cart component here.
import {Cart} from '../features/cart/Cart.js';
// Render the Cart component below <Inventory />
export const App = (props) => {
This file has been truncated. show original
Cart.js
import React from 'react';
import {
calculateTotal,
getCurrencySymbol,
} from '../../utilities/utilities.js';
// Import the changeItemQuantity() action creator.
import { changeItemQuantity } from './cartSlice.js'
This file has been truncated. show original
Inventory.js
import React, { useEffect } from 'react';
import {
calculatePrice,
getCurrencySymbol,
} from '../../utilities/utilities.js';
import { addItem } from '../cart/cartSlice.js';
import { loadData } from './inventorySlice';
export const Inventory = ({ inventory, currencyFilter, dispatch }) => {
This file has been truncated. show original
There are more than three files. show original