I'm making a react application and to fetch pages with data I'm actually using a generated token in the URL like this http://localhost.com/a/xQ9aK2 with xQ9aK2 as the token.
Having no previous experience regarding SEO, and while the application might have a lot of pages, I was wondering if I should restructure my URL to include something like a slug, or should I just keep the actual URL and maybe use React-Router-Link with Redirect to append a slug at the end of a URL after fetching data?
OR is there anything I can do in order to improve the ranking of the pages?
It's recommended to add an easy to read slug both for Googlebot as well as users. If you need the token in there for an identifier, that's absolutely ok to include as well:
http://localhost.com/a/top-nfts-to-watch-2022-xQ9aK2
Additionally, make sure you have a unique title tag for each page as well as H1s.