Is there a convenient way of working with formdata in an action. I have an object
type MyData = {
somename:string;
subObjects[]: {
name:string;
address;
}
}
But when retrieving in an action it looks like i have to do some massive parsing to get this working
subObjects[0].name ="asdfasf"
Is what I have, is this an anti-pattern. Are there no libraries to take my formData to my desired object? Is it "frowned" upon to just submit it as JSON?
React router 7