This commit is contained in:
Firesieht 2022-10-22 19:35:53 +03:00
parent 81c649d102
commit d7c4e9ad12
2 changed files with 13 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import { host } from "./consts"
export const fetcher = axios.create(
{
baseURL: host,
timeout: 1000,
}
)

View File

@ -8,9 +8,19 @@ export const ProductsView:React.FC = () =>{
console.log(getProducts)
return(
<div>
<Card title="Card title" bordered={false}>
Card content
</Card>
{
getProducts.map(el=> <Card title={el.name} bordered={true}>
<div>
{el.category}
</div>
<div>
{
el.characteristics == undefined? "":el.characteristics.toString()
}
</div>
</Card>)
}
</div>
);
}