Checkout this project in my playground that shows how to deploy a simple React-based SPA application against a REST backend. This particular example is somewhat complicated as it additionally showcases a second presentation-oriented application (using JSP) that works together with the React-based SPA.
So, in total there are three applications working in tandem:
Due to the considerations involved in making three different applications work together, this example also shows how to set up Cross-Origin Resource Sharing (CORS).