DEV Community

Discussion on: Rails + React + ActionCable without the fuss

Collapse
 
ndrean profile image
NDREAN

You can import { csrfToken } from "@rails/ujs" to get the "X-CSRF-TOKEN"
On the same subject, the Hotwire/Turbo project is pretty neat.