React : Improve URL structure for SEO

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?