My cart function is deleting items When refreshed

I have a add to cart function it adds to cart and when ı go to the cart ı am using react so ı can use links so ı use link tags to go to the cart page it shows the items correctly but when ı refresh the items are all gone how can ı not make them dissapear.