Add className to directly render a div
h0jeZvgoxFepBQ2C opened this issue · comments
Would be cool if you could add a className parameter, which automatically generates a div with the desired classname...!
use render
Sure, but it would be really handy to just add className :)
we do spread the rest props as well with as
: https://github.com/react-hook-form/error-message/blob/master/src/ErrorMessage.tsx#L29