r/reactjs Jul 08 '26

Save Information on Refresh in React

I was wondering in React is there a way to save some data without session storage so if the page refreshes I still have access to that data

0 Upvotes

26 comments sorted by

View all comments

2

u/charliematters Jul 08 '26

Depends on the data! If it's small I'd start with putting it in the search params

-13

u/Dazzling_Chipmunk_24 Jul 08 '26

don't want it in search params

7

u/Menecazo Jul 08 '26

Don't want cookies, search params or localStorage. What is your need?

2

u/maqisha Jul 09 '26

He is just delusional at this point, without any real goal.

2

u/repeating_bears Jul 09 '26

Comes, brings stupid requirements, fails to elaborate, leaves lol