diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 4dcb439..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,20 +0,0 @@ -module.exports = { - root: true, - env: { browser: true, es2020: true }, - extends: [ - 'eslint:recommended', - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - 'plugin:react-hooks/recommended', - ], - ignorePatterns: ['dist', '.eslintrc.cjs'], - parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, - settings: { react: { version: '18.2' } }, - plugins: ['react-refresh'], - rules: { - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], - }, -} diff --git a/component-tree.png b/component-tree.png new file mode 100644 index 0000000..f234bbd Binary files /dev/null and b/component-tree.png differ diff --git a/src/App.jsx b/src/App.jsx index 03e658b..5b976ba 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,44 +1,19 @@ import './styles/reset.css' import './styles/index.css' -import initialStoreItems from './store-items' +import Header from './components/header/Header' +import MainComponent from './components/main/MainComponent' +import Footer from './components/footer/Footer' +import { useState } from 'react' export default function App() { + const [cartItem, setCartItem] = useState([]) + return ( <> -
-

Greengrocers

- -
-
-

Your Cart

-
- -
-
-
-

Total

-
-
- £0.00 -
-
-
-
- Icons made by - - Icongeek26 - - from - - www.flaticon.com - -
+
+ +