In a Rails app, which approach lets you serve a Vue.js or React SPA while still using Rails for the API?
-
A
Mount the SPA in config/routes.rb using mount ReactApp
-
B
Serve the SPA separately (e.g., Vercel/Netlify) and point it at a Rails API-only app
-
C
Use ActionView with embedded Vue components via asset pipeline only
-
D
Configure Turbolinks to intercept all React routing