[QUESTION] Can @tsed/react-formio be used without Ts.ED framework?
mm-dsibinski opened this issue · 4 comments
Hi!
Can @tsed/react-formio
be considered a better alternative to @formio/react
package?
In other words: is tsed-formio
somehow tied to Ts.ED framework?
I'd like to use it instead of @formio/react
in a typical React project.
Hello @mm-dsibinski
It’s totally independant of the tsed framework. It’s effectivly annalternative of react-formio ;)
Thanks for answering @Romakita 🙂
I checked the package, and it seems you're doing a great job here! 💪
However, I see that the React API is a bit different from original FormIO's package. Which is not a disadvantage of course, but I noticed that FormBuilder
component from @tsed/react-formio
expects to separately provide components
and display
, while the original one accepts the whole form
object. It's a bit problematic for me to use now, because I also provide some custom objects there (except components
and display
). Unfortunately, I had to do it to "hack" around some of FormIO caveats (🤪) and it's not easy to be refactored now.
The solution is to create your component that wrap the FormEdit and FormBuilder ;)
I just separated the FormBuilder from the configuration form. My FormEdit proposal is more complete but not necessarily adapted for all projects.
See you
Romain