The ingenuity here is exactly not needing a roundtrip for every interaction.
You request a page -> fastapi sends the client a json defining the components -> the frontend knows how to render this json into react components that run locally just like any other js framework.