Вынесли логику из компонента App в Catalog. Добавили маршрутизацию в main.jsx
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
import styles from './index.module.scss'
|
||||
|
||||
import Header from '../../components/header/index'
|
||||
import ProductList from '../../components/list/index'
|
||||
|
||||
const Catalog = () => {
|
||||
return <></>
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<Header />
|
||||
<ProductList />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Catalog
|
||||
|
||||
Reference in New Issue
Block a user