How to get friendly URLs to work in a headless implementation?
if you use drupal headless its mostly up to the front end framework to implement friendly urls

for react you will probably use routes but since this is beyond the scope of this forum the question might also be deemed as irrelevant