Just a question related to asset publishing.
Currently when using ActiveForm with client side validation, it will output the validation rules and error messages in the HTML.
How could we achieve the same thing if we want to build our frontend in a JS framework such as Vue or React? I know we can write our own custom validation in JS, but this means duplicating backend validation rules and error messages.
What techniques could we use to achieve the same result?