Hi Alexander.
I think form-for
may be a good solution for you.
Since you can bind any type of component with form-for
, it's quite simple to make arrays work. Because array components usually require a lot of customization, there's no default binding from form-for-components
or even form-for-bootstrap-components
, yet, you can use <Field>
inside a custom component.
It's a lot simpler to understand this in an example: https://codesandbox.io/s/2xmo450my. If you look at the User.js
file, you'll see a @field({ type: TodoItem[] })
, which resolves to TodoItems.js
. I believe this may be close to what you're looking for.
Regarding Typescript — I do plan to provide typescript support, but I'm not sure when. PRs are welcome.
Ps. There are to other examples in my codesandbox account: https://codesandbox.io/u/pedsmoreira/sandboxes