@danott allows for Rails' CSRF token to be passed into the FormTag via props and falls back to using the original document.querySelector("head meta[name='csrf-token']") method.
Useful if you want to server render any forms using this lib and the document is not available.
@danott allows for Rails' CSRF token to be passed into the
FormTag
via props and falls back to using the originaldocument.querySelector("head meta[name='csrf-token']")
method.Useful if you want to server render any forms using this lib and the document is not available.